Unverified Commit b0595b17 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

ci: only cancel pull_request_stats on PR updates (#90104)

This avoids cancelling on canary branch when a commit is merged while
previous commit is still running

## Summary
- keep cancel-in-progress behavior for pull_request runs
- stop canceling in-progress runs for follow-up pushes to canary by
using a per-run concurrency group for push events

x-ref:
https://github.com/vercel/next.js/actions/runs/22113161316/job/63914496141
parent a7c61c10
......@@ -8,8 +8,9 @@ on:
name: Generate Stats
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# Keep cancel-on-update behavior for PRs, but allow canary pushes to run independently.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
env:
NAPI_CLI_VERSION: 2.18.4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment