added branch name conditions

This commit is contained in:
Vadim 2023-06-28 17:24:14 +02:00
parent 67818f7c8c
commit 03293497e1

View file

@ -121,12 +121,13 @@ jobs:
uses: CasperWA/push-protected@v2 uses: CasperWA/push-protected@v2
with: with:
token: ${{ secrets.PUSH_TO_MAIN_TOKEN }} token: ${{ secrets.PUSH_TO_MAIN_TOKEN }}
branch: main branch: ${{ github.ref_name }}
unprotect_reviews: true unprotect_reviews: true
create-release: create-release:
name: Create Github release name: Create Github release
needs: [build, update-version-in-repo] needs: [build, update-version-in-repo]
if: ${{ github.ref_name }} == 'main'
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write