Skip to content

Commit

Permalink
🔧 chore: refine GitHub Actions release workflow to enhance concurrenc…
Browse files Browse the repository at this point in the history
…y management and sync conditions
  • Loading branch information
jedzill4 committed Jan 26, 2025
1 parent 4d29b4e commit 0316205
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ on:
branches:
- main # Trigger on PR merge to main

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

jobs:
release:
runs-on: ubuntu-latest
concurrency: release
concurrency:
group: release
cancel-in-progress: true

permissions:
id-token: write
Expand Down Expand Up @@ -54,7 +53,10 @@ jobs:

sync-dev:
needs: release
if: ${{ github.ref_name == 'main' }}
if: ${{ needs.release.result == 'success' && github.ref_name == 'main' }}
concurrency:
group: release-sync
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand Down

0 comments on commit 0316205

Please sign in to comment.