Skip to content

Commit

Permalink
Run following workflow if previous one is successful
Browse files Browse the repository at this point in the history
  • Loading branch information
Géry Casiez committed Dec 14, 2024
1 parent 2c0b0a4 commit 9cf5134
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/macOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: macOS
on:
workflow_run:
workflows: [Linux]
types:
- completed
types: [completed]

jobs:
build:

runs-on: macos-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pythonBinding.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ name: PythonBinding

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

jobs:

build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
container: ubuntu:latest

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ name: Windows
on:
workflow_run:
workflows: [macOS]
types:
- completed
types: [completed]

jobs:
build:

runs-on: windows-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 9cf5134

Please sign in to comment.