mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 15:30:59 +00:00
added push to protected branch action
This commit is contained in:
parent
7c1ec32453
commit
0c89affe1b
1 changed files with 9 additions and 4 deletions
13
.github/workflows/cd_prod.yml
vendored
13
.github/workflows/cd_prod.yml
vendored
|
@ -109,15 +109,20 @@ jobs:
|
|||
|
||||
- name: Increment build number & replace version number
|
||||
run: perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+)(\+)(\d+)$/$1."${{ github.event.inputs.version }}".$3.($4+1)/e' pubspec.yaml
|
||||
|
||||
- name: Commit and push changes
|
||||
|
||||
- name: Commit changes
|
||||
run: |
|
||||
git config --global user.name "vodemn"
|
||||
git config --global user.email "vadim.turko@gmail.com"
|
||||
|
||||
git add -A
|
||||
git commit -m "Version bump"
|
||||
git push
|
||||
|
||||
- name: Push to main
|
||||
uses: CasperWA/push-protected@v2
|
||||
with:
|
||||
token: ${{ secrets.PUSH_TO_MAIN_TOKEN }}
|
||||
branch: main
|
||||
unprotect_reviews: true
|
||||
|
||||
create-release:
|
||||
name: Create Github release
|
||||
|
|
Loading…
Reference in a new issue