Skip to content

Commit

Permalink
feat: when no assets changed and using same branch for dev and releas…
Browse files Browse the repository at this point in the history
…e do not move tag
  • Loading branch information
luislard committed Sep 2, 2024
1 parent 9e36129 commit b05960c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-push-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,11 @@ jobs:
run: git push

- name: Git push for tag
if: ${{ github.ref_type == 'tag' }}
if: ${{ github.ref_type == 'tag' && ((env.NO_CHANGES != 'yes' && env.RELEASE_BRANCH_ENABLED == 'no') || (env.RELEASE_BRANCH_ENABLED == 'yes')) }}
run: git push

- name: Move tag
if: ${{ github.ref_type == 'tag' }}
if: ${{ github.ref_type == 'tag' && ((env.NO_CHANGES != 'yes' && env.RELEASE_BRANCH_ENABLED == 'no') || (env.RELEASE_BRANCH_ENABLED == 'yes')) }}
run: |
git tag -d ${{ env.TAG_NAME }}
git push origin :refs/tags/${{ env.TAG_NAME }}
Expand Down

0 comments on commit b05960c

Please sign in to comment.