From 87165239c1dbc11c75ec90b07b64ed6fec42cb8e Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Mon, 7 Jun 2021 11:55:51 +0200 Subject: [PATCH] use CasperWA/push-protected --- .github/workflows/prerelease.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 529c52e82d..e4fd91e3fd 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -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