Skip to content

Commit

Permalink
Update build.yaml adding a double condition
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored Jul 3, 2024
1 parent 9f54a07 commit f354024
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ jobs:
check_changes:
name: Check changed files
outputs:
run_build_windows: ${{ steps.check_files.outputs.run_build_windows }}
run_build_windows: ${{ steps.check_files.outputs.run_build_windows || steps.force_execute.outputs.run_build_windows }}
runs-on: ubuntu-latest
steps:
- if: ${{ github.event_name != 'push' }}
- id: force_execute
if: ${{ github.event_name != 'push' }}
run: echo "run_build_windows=true" >> $GITHUB_OUTPUT
- id: get_changed_files
if: ${{ github.event_name == 'push' }}
Expand Down Expand Up @@ -59,7 +60,7 @@ jobs:
fi
done
- name: Get run_build_windows
run: echo "The selected run_build_windows is ${{ steps.check_files.outputs.run_build_windows }}"
run: echo "The selected run_build_windows is ${{ steps.check_files.outputs.run_build_windows || steps.force_execute.outputs.run_build_windows }}"

# Now run "build_windows"
build_windows:
Expand Down

0 comments on commit f354024

Please sign in to comment.