Skip to content

Commit 70e9287

Browse files
committed
try to use push protected
1 parent 645650f commit 70e9287

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/create_release.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff 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: |
@@ -78,7 +90,13 @@ jobs:
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

0 commit comments

Comments
 (0)