Skip to content

Commit

Permalink
Use a different method to check for CI success
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross committed Aug 9, 2022
1 parent 4d7f1bd commit 2215b5d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 14 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI (check-all)

on:
workflow_run:
workflows: [CI]
types: [completed]

jobs:
check-all:
runs-on: ubuntu-latest
steps:
- run: echo 'The triggering workflow passed'
if: ${{ github.event.workflow_run.conclusion == 'success' }}
- run: echo 'The triggering workflow failed' && false
if: ${{ github.event.workflow_run.conclusion != 'success' }}
15 changes: 15 additions & 0 deletions .github/workflows/ci-dev-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI (docker, check-all)

on:
workflow_run:
workflows: [CI (docker)]
types: [completed]

jobs:
check-all-docker:
runs-on: ubuntu-latest
steps:
- run: echo 'The triggering workflow passed'
if: ${{ github.event.workflow_run.conclusion == 'success' }}
- run: echo 'The triggering workflow failed' && false
if: ${{ github.event.workflow_run.conclusion != 'success' }}
7 changes: 0 additions & 7 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,3 @@ jobs:
eval $(opam env)
echo '::endgroup::'
make check PYTHON=python3 CAT_ALL_LOGS=1
check-all-docker:
runs-on: ubuntu-latest
needs: build
steps:
- run: true
7 changes: 0 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,3 @@ jobs:
if: ${{ matrix.python-version != '2.7' }}
- name: Test
run: make has-all-tests && make check PYTHON=python CAT_ALL_LOGS=1


check-all:
runs-on: ubuntu-latest
needs: build
steps:
- run: true

0 comments on commit 2215b5d

Please sign in to comment.