Skip to content

Commit

Permalink
Add concurrency check
Browse files Browse the repository at this point in the history
  • Loading branch information
berrydenhartog committed Jun 12, 2024
1 parent 72d4ff3 commit 93f58a3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
branches:
- 'main'

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

env:
REGISTRY: ghcr.io
POETRY_CACHE_DIR: ~/.cache/pypoetry
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: deploy


on:
push:
branches:
Expand All @@ -18,6 +19,10 @@ on:
- stag
- prod

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

jobs:
deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -56,7 +61,6 @@ jobs:
exit 1
fi
- name: Print deploy hash and environment
run: |
echo ${{ steps.get_package_hash.outputs }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/first-interaction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: first-interaction

on: [pull_request, issues]

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

jobs:
greeting:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stale-pr-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
- cron: "0 4 * * *"
workflow_dispatch:

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

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

0 comments on commit 93f58a3

Please sign in to comment.