Skip to content

Commit

Permalink
Update concurrency settings in workflows with cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Apr 15, 2024
1 parent 390a004 commit d133e44
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ on:
schedule:
- cron: '45 20 * * 5'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
Build:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -109,7 +113,8 @@ jobs:
needs: [ Build ]

concurrency:
group: ${{ github.workflow }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false # wait for previous runs to complete

steps:
- name: Download Artifact
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ jobs:
IMAGE_NAME: 'dependabot-server'
DOCKER_BUILDKIT: 1 # Enable Docker BuildKit

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -161,7 +165,8 @@ jobs:
# if: ${{ github.actor != 'dependabot[bot]' && ((github.ref == 'refs/heads/main') || startsWith(github.ref, 'refs/tags')) }}

# concurrency:
# group: ${{ github.workflow }}
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: false # wait for previous runs to complete

# steps:
# - name: Download Artifact
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
- ".github/workflows/updater.yml"
- "!docs/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
Build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit d133e44

Please sign in to comment.