use CasperWA/push-protected

This commit is contained in:
Milan Kolar 2021-06-07 11:55:51 +02:00
parent 3cabcd71ab
commit 87165239c1

View file

@ -75,7 +75,6 @@ jobs:
run: |
git config user.email ${{ secrets.CI_EMAIL }}
git config user.name ${{ secrets.CI_USER }}
git remote set-url --push origin https://pypebot:${{ secrets.ADMIN_TOKEN }}@github.com/pypeclub/openpype
cd repos/avalon-core
git checkout main
git pull
@ -84,8 +83,14 @@ jobs:
git commit -m "[Automated] Bump version"
tag_name="CI/${{ steps.version.outputs.next_tag }}"
git tag -a $tag_name -m "nightly build"
git push
git push origin $tag_name
- name: Push to protected main branch
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.ADMIN_TOKEN }}
branch: main
tags: true
unprotect_reviews: true
- name: 🔨 Merge main back to develop
uses: everlytic/branch-merge@1.1.0