ci: skip integration test on release-please PRs#144
Merged
Conversation
release-please's release PR only edits CHANGELOG.md and .release-please-manifest.json and is authored by github-actions[bot], which the outside-contributor approval policy gates behind a manual 'Approve and run'. A paths-ignore filter means no workflow run is created for a PR that touches only those files, removing the manual approval step. Real PRs that change action code or tests still trigger CI.
Contributor
|
⬇️ Download the full plan (tofu-plan.txt): https://github.com/GlueOps/github-actions-opentofu-continuous-delivery/actions/runs/28247091011/artifacts/7909154247 OpenTofu PlanShow plan |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
paths-ignoreto the Integration Testpull_requesttrigger so it doesn't run on release-please's release PR:Why
release-please's release PR (e.g. #143) is authored by
github-actions[bot]and only ever editsCHANGELOG.mdand.release-please-manifest.json. Because the repo/org's "outside contributor" Actions policy gates bot-authored PRs behind a manual Approve and run, every release PR has been requiring a manual click to run CI.Path filters are evaluated before the run is created, so a PR that touches only these two files produces no run — and there's nothing to approve. (A job-level
if:wouldn't help: the run would still be created inaction_requiredfirst.)Impact
action.yml, tests, README, etc.) still trigger CI normally.CHANGELOG.mdwould also skip CI, which is fine.Note
This is the lightweight fix. The alternative (a GitHub App token for release-please) also removes the gate and additionally lets release events trigger downstream workflows — worth revisiting if release automation gets standardized across GlueOps repos, but it needs org-owner setup and isn't needed for this repo today.