Skip to content

Commit

Permalink
Merge pull request #1679 from dandi/fix-deploy-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh authored Oct 3, 2023
2 parents bbe3544 + 1087222 commit 953ccbe
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/backend-production-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
release:
types: [released]

concurrency:
# If this workflow is already running, cancel it to avoid a scenario
# where the older run finishes *after* the newer run and overwrites
# the deployment with an older version of the app.
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
reset-release-branch:
name: Update release branch
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/backend-staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
paths-ignore:
- "web/**"

concurrency:
# If this workflow is already running, cancel it to avoid a scenario
# where the older run finishes *after* the newer run and overwrites
# the deployment with an older version of the app.
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
deploy:
name: Deploy to Heroku
Expand Down

0 comments on commit 953ccbe

Please sign in to comment.