Skip to content

Commit

Permalink
prevent concurrent deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sync committed Nov 3, 2024
1 parent 8f06795 commit 5a608ef
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
branches:
- master

concurrency:
group: deployment
cancel-in-progress: true

jobs:
deploy:
name: 🚀 Deploy app
Expand All @@ -14,11 +18,11 @@ jobs:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}

steps:
- uses: actions/checkout@v4
name: 🚚 Get latest code
- name: 🚚 Get latest code
uses: actions/checkout@v4

- uses: superfly/flyctl-actions/setup-flyctl@master
- name: Set app name
- name: Set app name
run: |
if [[ -n "${{ secrets.FLY_APP_NAME }}" ]]; then
echo "APP_NAME=${{ secrets.FLY_APP_NAME }}" >> $GITHUB_ENV
Expand Down

0 comments on commit 5a608ef

Please sign in to comment.