Skip to content

Commit

Permalink
workflow: run only one workflow at a time to fix race conditions
Browse files Browse the repository at this point in the history
Current workflow design doesn't allow for running multiple workflows.
Even though runner allows only 1 job to run we can get situation in
which workflow A builds DTS and then next job is cleanup of workflow B
which will delete everything including workflow A artifacts.

Signed-off-by: Michał Iwanicki <[email protected]>
  • Loading branch information
m-iwanicki committed Feb 6, 2025
1 parent 4afd1e3 commit 5734960
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- '!v*-rc*'

concurrency:
group: ${{ github.workflow }}
group: run-only-one-workflow

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'v*-rc*'

concurrency:
group: ${{ github.workflow }}
group: run-only-one-workflow

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "main"

concurrency:
group: ${{ github.workflow }}
group: run-only-one-workflow

jobs:
build-dts:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}
group: run-only-one-workflow

jobs:
build:
Expand Down

0 comments on commit 5734960

Please sign in to comment.