diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8dd954f..7fe8f06 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,7 +10,11 @@ on: # Prevent duplicate runs when pushing to a branch with an open PR # This ensures only one workflow runs at a time for the same branch/PR concurrency: - group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.number || github.sha }} + # Group by workflow name and either PR number (for PRs) or branch name (for pushes) + # This prevents duplicate runs when both push and PR events fire for the same commit + # For PRs: uses PR number to group all runs for that PR + # For pushes: uses branch ref to group all runs for that branch + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: