Skip to content

ci: build only production branches on push; cancel stale PR jobs#1268

Merged
chrjohn merged 2 commits into
masterfrom
copilot/update-java-ci-job
Jun 23, 2026
Merged

ci: build only production branches on push; cancel stale PR jobs#1268
chrjohn merged 2 commits into
masterfrom
copilot/update-java-ci-job

Conversation

Copilot AI commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Feature branches were triggering two builds: one on push, one on the PR. This scopes the push trigger to production branches only (master, 2.3.x) and adds concurrency cancellation so a new PR commit kills the in-progress job.

Changes

  • push trigger — add branches: [master, 2.3.x] filter; feature branch pushes no longer get a standalone build
  • concurrency block — PR runs grouped by PR number with cancel-in-progress: true; production-branch push runs use run_id as group key so they are never cancelled
concurrency:
  group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.run_id }}
  cancel-in-progress: ${{ github.event_name == 'pull_request' }}

@chrjohn chrjohn added this to the QFJ 3.0.2 milestone Jun 22, 2026
@chrjohn chrjohn marked this pull request as ready for review June 23, 2026 14:00
@chrjohn chrjohn merged commit 41e7659 into master Jun 23, 2026
12 checks passed
@chrjohn chrjohn deleted the copilot/update-java-ci-job branch June 23, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants