Skip to content

Commit

Permalink
ci/cd: Add deploy + lint to the same concurrency group since they pus…
Browse files Browse the repository at this point in the history
…h to the repo
  • Loading branch information
RandomSpaceship committed Dec 2, 2024
1 parent da5fab2 commit 8206ea0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ on:
- "flake.lock"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# only run one job at a time
# needed for the intersphinx update
concurrency:
group: "docs"
cancel-in-progress: true
jobs:
deploy-docs:
# only run one job at a time
# jobs which push to the repo all need to be in this concurrency group
concurrency:
group: "docs"
cancel-in-progress: true
# needed for the intersphinx update
group: "pushers"
permissions:
contents: write
runs-on: ubuntu-latest
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ on:
push:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# only run one job at a time
concurrency:
group: "format"
cancel-in-progress: true
jobs:
run-format:
# only run one job at a time
# jobs which push to the repo all need to be in this concurrency group
concurrency:
group: "format"
cancel-in-progress: true
group: "pushers"
# needed to push changes if needed
permissions:
contents: write
Expand Down

0 comments on commit 8206ea0

Please sign in to comment.