diff --git a/.github/workflows/build-and-push-assets.yml b/.github/workflows/build-and-push-assets.yml index 925ec58a..c1df32d7 100644 --- a/.github/workflows/build-and-push-assets.yml +++ b/.github/workflows/build-and-push-assets.yml @@ -284,11 +284,11 @@ jobs: run: git push - name: Git push for tag - if: ${{ github.ref_type == 'tag' && (env.NO_CHANGES != 'yes' || env.RELEASE_BRANCH_ENABLED == 'yes') }} + if: ${{ github.ref_type == 'tag' && env.RELEASE_BRANCH_ENABLED == 'yes' }} run: git push - name: Move tag - if: ${{ github.ref_type == 'tag' && (env.NO_CHANGES != 'yes' || env.RELEASE_BRANCH_ENABLED == 'yes') }} + if: ${{ github.ref_type == 'tag' && env.RELEASE_BRANCH_ENABLED == 'yes' }} run: | git tag -d ${{ env.TAG_NAME }} git push origin :refs/tags/${{ env.TAG_NAME }} @@ -296,7 +296,7 @@ jobs: git push origin --tags - name: Delete temporary tag branch - if: ${{ always() && (env.TAG_BRANCH_NAME != '' && env.NO_CHANGES != 'yes') }} + if: ${{ always() && env.TAG_BRANCH_NAME != '' }} run: | git checkout --detach git branch -d ${{ env.TAG_BRANCH_NAME }}