Skip to content

Commit

Permalink
ci: use !cancelled() instead of always()
Browse files Browse the repository at this point in the history
Using `always()` prevented workflows from being cancelled.

Signed-off-by: Sam Friedman <sam@golioth.io>
  • Loading branch information
sam-golioth authored and szczys committed Sep 19, 2024
1 parent bdb5027 commit 3e959c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/hil_sample_zephyr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:

test:
name: zephyr-${{ inputs.hil_board }}-twister-run
if: ${{ inputs.run_tests && always() }}
if: ${{ inputs.run_tests && !cancelled() }}
needs: build
runs-on: [ is_active, "has_${{ inputs.hil_board }}" ]
timeout-minutes: 30
Expand Down

0 comments on commit 3e959c2

Please sign in to comment.