Skip to content

Commit

Permalink
Merge pull request #20288 from kaspar030/fix_check_commits
Browse files Browse the repository at this point in the history
ci: ensure "xxx succeeded" properly fail
  • Loading branch information
kaspar030 authored Jan 23, 2024
2 parents 2bf4611 + 5a16b63 commit 7bec6cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ jobs:
./dist/tools/${{ matrix.check }}/check.sh "${{ github.base_ref }}"
check-commits-success:
needs: check-commits
if: github.event_name != 'merge_group'
if: always() && github.event_name != 'merge_group'
runs-on: ubuntu-latest
steps:
- name: check-commits succeeded
run: exit 0
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
6 changes: 4 additions & 2 deletions .github/workflows/tools-buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ jobs:
with:
cmd: make -C ${{ matrix.tools.path }}/${{ matrix.tools.name }}
tools-build-success:
# this is only run if all jobs in tools-build succeeded
if: always()
needs: tools-build
runs-on: ubuntu-latest
steps:
- name: tools-build succeeded
run: exit 0
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

0 comments on commit 7bec6cb

Please sign in to comment.