Files
packages/.github/workflows/multi-arch-test-build.yml
T
Hauke Mehrtens 753e26a131 ci: cancel in-progress Test and Build runs on PR update
When a contributor pushes a new commit to an open PR, the previous
Test and Build run is no longer informative and only consumes a
runner slot that the new run could use. Add a concurrency group
keyed on the workflow name and ref so a fresh push cancels the
prior in-progress run for the same PR.

Since this workflow only triggers on pull_request, the ref is
always refs/pull/<num>/merge (unique per PR), so cancel-in-progress
can be set unconditionally.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2026-05-11 01:30:20 +02:00

39 lines
1.0 KiB
YAML

name: Test and Build
on:
pull_request:
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
formalities:
name: Test Formalities
runs-on: ubuntu-slim
steps:
- name: HyperStickler
uses: georgesapkin/hyperstickler@v1
with:
check_branch: false
check_signoff: true
feedback_url: 'https://github.com/openwrt/actions-shared-workflows/issues'
guideline_url: 'https://openwrt.org/submitting-patches#submission_guidelines'
max_body_line_len: 100
max_subject_len_hard: 80
max_subject_len_soft: 60
# This still needs a fine-grained token related to:
# https://github.com/openwrt/packages/pull/28011
# job_step: 2
# post_comment: true
# warn_on_no_modify: true
build:
name: Feeds Package Test Build
needs: formalities
uses: openwrt/actions-shared-workflows/.github/workflows/multi-arch-test-build.yml@main