Skip to content

Commit

Permalink
fix: remove condition
Browse files Browse the repository at this point in the history
  • Loading branch information
luislard committed Aug 21, 2024
1 parent b8beeed commit 2d233e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-and-push-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,11 @@ 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' || inputs.BUILT_BRANCH_NAME != '') }}
if: ${{ github.ref_type == 'branch' && (env.NO_CHANGES != 'yes') }}
run: git push

- name: Git push for tag
Expand Down

0 comments on commit 2d233e0

Please sign in to comment.