Skip to content

Commit

Permalink
Revert "fix: remove condition"
Browse files Browse the repository at this point in the history
This reverts commit 2d233e0.
  • Loading branch information
luislard committed Aug 21, 2024
1 parent 2d233e0 commit abe67c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-and-push-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,8 @@ jobs:
git add -A
git commit -m "[BOT] Add compiled assets for #${{ github.ref }}" --no-verify || ((echo "NO_CHANGES=yes" >> $GITHUB_ENV) && (echo "No changes to commit"))
# The logic should be like the following:
# If we have changes in our assets we commit and push them.
# If we push not to the same branch, we always push commits (because they originated from the development branch).
- name: Git push for branch
if: ${{ github.ref_type == 'branch' && (env.NO_CHANGES != 'yes') }}
if: ${{ github.ref_type == 'branch' && (env.NO_CHANGES != 'yes' || inputs.BUILT_BRANCH_NAME != '') }}
run: git push

- name: Git push for tag
Expand Down

0 comments on commit abe67c2

Please sign in to comment.