Merge pull request #951 from teloxide/make-ci-actually-do-its-job

Make `ci-pass` job actually fail when some required job failed
This commit is contained in:
Tima Kinsart 2023-10-06 16:45:07 +00:00 committed by GitHub
commit 45ff4f7bfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,7 @@ jobs:
ci-pass: ci-pass:
name: CI succeeded name: CI succeeded
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: always()
needs: needs:
- fmt - fmt
@ -44,7 +45,10 @@ jobs:
- doc - doc
steps: steps:
- run: exit 0 - name: Check whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
fmt: fmt:
name: fmt name: fmt