Skip to content

ci: gate PR build workflow on CI-Run label#32

Merged
spraveenio merged 3 commits into
ROCm:mainfrom
bhatnitish:ci-label-gate
Jun 24, 2026
Merged

ci: gate PR build workflow on CI-Run label#32
spraveenio merged 3 commits into
ROCm:mainfrom
bhatnitish:ci-label-gate

Conversation

@bhatnitish

Copy link
Copy Markdown
Contributor

Summary

  • Gate the PR build workflow (ci.yml) behind a CI-Run label so that builds only run when an admin/approved person adds the label
  • Trigger on labeled (label added) and synchronize (new commits pushed) so CI re-runs automatically on new pushes if the label is already present
  • PRs without the CI-Run label are skipped entirely

Notes

  • The CI-Run label needs to be created in the repo (Settings > Labels)
  • By default, only collaborators with write/triage access can add labels — this can be further restricted via GitHub repo/org settings

Require the CI-Run label to be present on a pull request before the
build job runs. The workflow triggers on label addition and on new
pushes (synchronize) so that CI re-runs automatically when commits
are pushed to a PR that already has the label.

@spraveenio spraveenio left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@spraveenio spraveenio merged commit e839c0c into ROCm:main Jun 24, 2026
1 check passed
bhatnitish added a commit to bhatnitish/rocm-k8s-device-plugin that referenced this pull request Jun 26, 2026
Add workflow_dispatch trigger to allow manual runs, and a concurrency
group with cancel-in-progress to cancel stale runs when new commits
are pushed to the same PR. Mirrors ROCm/device-config-manager#32.
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