mirror of
https://github.com/YosysHQ/yosys
synced 2026-03-20 20:05:52 +00:00
Check results properly
This commit is contained in:
parent
e05ed6b850
commit
bccfdef05d
5 changed files with 48 additions and 8 deletions
10
.github/workflows/test-compile.yml
vendored
10
.github/workflows/test-compile.yml
vendored
|
|
@ -100,6 +100,14 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- test-compile
|
||||
if: always() && !contains(join(needs.*.result, ','), 'failure') && !contains(join(needs.*.result, ','), 'cancelled')
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check results
|
||||
run: |
|
||||
echo "Needs results: ${{ join(needs.*.result, ',') }}"
|
||||
if [[ "${{ join(needs.*.result, ',') }}" == *failure* ]] || \
|
||||
[[ "${{ join(needs.*.result, ',') }}" == *cancelled* ]]; then
|
||||
echo "Some jobs failed or were cancelled"
|
||||
exit 1
|
||||
fi
|
||||
- run: echo "All good"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue