Skip to content

Commit

Permalink
Feat/153 make build and push always sync (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
luislard authored Sep 4, 2024
1 parent 3806bfd commit 4caec22
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-and-push-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ jobs:
COMPILE_SCRIPT: ''
TAG_NAME: '' # we'll override if the push is for tag
TAG_BRANCH_NAME: '' # we'll override if the push is for tag
LOCK_FILE: '' # we'll override after checking files
NO_CHANGES: '' # we'll override if no changes to commit
steps:
- name: Checkout
Expand Down Expand Up @@ -280,7 +279,7 @@ jobs:
git commit -m "[BOT] Add compiled assets for #${{ github.ref }}" --no-verify || ((echo "NO_CHANGES=yes" >> $GITHUB_ENV) && (echo "No changes to commit"))
- name: Git push for branch
if: ${{ github.ref_type == 'branch' && (env.NO_CHANGES != 'yes' || inputs.BUILT_BRANCH_NAME != '') }}
if: ${{ github.ref_type == 'branch' }}
run: git push

- name: Git push for tag
Expand All @@ -296,7 +295,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 != '' && env.NO_CHANGES != 'yes' }}
run: |
git checkout --detach
git branch -d ${{ env.TAG_BRANCH_NAME }}
Expand Down

0 comments on commit 4caec22

Please sign in to comment.