From b05960c502dbdbe961fad36b26ceed03cdca9c95 Mon Sep 17 00:00:00 2001 From: Luis Rosales Date: Mon, 2 Sep 2024 09:40:45 +0200 Subject: [PATCH] feat: when no assets changed and using same branch for dev and release do not move tag --- .github/workflows/build-and-push-assets.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-push-assets.yml b/.github/workflows/build-and-push-assets.yml index bfbb727b..834b0921 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' }} + 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 }}