run ci only if [run-ci] is in commit message#783
Conversation
|
With this requirement, we could also allow CI to run on pushes to branches, provided the [run-ci] tag is in the commit message. |
drreynolds
left a comment
There was a problem hiding this comment.
This looks fine, but can you clarify the purpose of the PR? Is it just that we run the CI too frequently and want to limit this? Or is this a "security" question?
|
We run CI too frequently and want to limit it, especially if we start hosting our own github runners. We can discuss this more at our next team meeting. For now, we should not merge this. I meant to open it as a draft. |
|
Ill also note that GitHub supports a skip ci command by default: https://docs.github.com/en/actions/how-tos/manage-workflow-runs/skip-workflow-runs. We could use an opt-out approach instead. |
|
With the new CI staging, this may not be needed. |
This will limit the GitHub actions CI to only commits with "[run-ci]" in the commit message. This will ensure we are not running the GitHub actions CI more than necessary.