Skip to content

Commit

Permalink
feat: remove NO_CHANGES check for tag flux
Browse files Browse the repository at this point in the history
  • Loading branch information
luislard committed Aug 22, 2024
1 parent 166e54a commit b942593
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-push-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,19 +284,19 @@ 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 }}
git tag -a -m "[RELEASE] ${{ github.sha }} // Released by ${{ github.workflow }}" ${{ env.TAG_NAME }}
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 }}
Expand Down

0 comments on commit b942593

Please sign in to comment.