helm-charts
helm-charts copied to clipboard
PRs open by automation don't trigger CI runs
PRs such as: https://github.com/kubewarden/helm-charts/pull/322 https://github.com/kubewarden/helm-charts/pull/308
Don't trigger CI runs for themselves.
The PRs get triggered by using peter-evans/repository-dispatch
, see:
https://github.com/kubewarden/policy-server/blob/dbd4e8dc0283c13c842c371e86436c6f28f69dfb/.github/workflows/release.yml#L129C37-L132
Searching on the interwebs I reached: https://github.com/orgs/community/discussions/25602 https://github.com/peter-evans/create-pull-request/issues/48 summarized in: https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
Hence, we could implement one of the workarounds:
Workarounds to trigger further workflow runs
There are a number of workarounds with different pros and cons. The easiest being:
Use the default GITHUB_TOKEN and allow the action to create pull requests that have no checks enabled. Manually close pull requests and immediately reopen them. This will enable on: pull_request workflows to run and be added as checks. To prevent merging of pull requests without checks erroneously, use branch protection rules.