File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,25 @@ jobs:
5858 run : |
5959 git add ayon_api/version.py pyproject.toml
6060 git commit -m "Release version ${{ steps.get_version.outputs.version }}"
61- git push origin develop
61+
62+ - name : Push to protected develop branch
63+ uses : CasperWA/push-protected@v2.10.0
64+ with :
65+ token : ${{ secrets.YNPUT_BOT_TOKEN }}
66+ branch : develop
67+ unprotect_reviews : true
6268
6369 - name : Rebase main on develop
6470 run : |
6571 git checkout main
6672 git rebase develop
67- git push origin main
73+
74+ - name : Push to protected main branch
75+ uses : CasperWA/push-protected@v2.10.0
76+ with :
77+ token : ${{ secrets.YNPUT_BOT_TOKEN }}
78+ branch : main
79+ unprotect_reviews : true
6880
6981 - name : Create and push tag
7082 run : |
7890 python manage_version.py update --version $NEW_VERSION
7991 git add ayon_api/version.py pyproject.toml
8092 git commit -m "Bump version to $NEW_VERSION"
81- git push origin develop
93+
94+ - name : Push to protected develop branch
95+ uses : CasperWA/push-protected@v2.10.0
96+ with :
97+ token : ${{ secrets.YNPUT_BOT_TOKEN }}
98+ branch : develop
99+ unprotect_reviews : true
82100
83101 - name : Create GitHub Release
84102 uses : softprops/action-gh-release@v2
You can’t perform that action at this time.
0 commit comments