Add skip_ci_check composite action#1
Closed
phelma wants to merge 1 commit into
Closed
Conversation
Collaborator
Author
|
Superseded: the skip-ci-check job is being removed entirely — GitHub's native [skip ci] handling plus GITHUB_TOKEN push semantics already cover the loop-guard, so no shared action is needed. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a reusable composite GitHub Action to detect “skip CI” directives in commit messages and documents how to use it in workflows.
Changes:
- Introduces
skip_ci_checkcomposite action that outputs whether CI should be skipped based on commit message markers. - Updates README to list the new action and provide a sample “gate job” configuration.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| skip_ci_check/action.yaml | Adds composite action that inspects commit messages and emits should_skip_ci. |
| README.md | Documents the new skip_ci_check action and provides a usage example. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+26
to
+28
| if [[ "$HEAD_COMMIT_MESSAGE" == *"[no ci]"* ]] \ | ||
| || [[ "$HEAD_COMMIT_MESSAGE" == *"[skip ci]"* ]] \ | ||
| || [[ "$HEAD_COMMIT_MESSAGE" == *"[ci skip]"* ]]; then |
|
|
||
| ### `skip_ci_check` | ||
|
|
||
| Use this in a lightweight gate job whose output later jobs check before running: |
| Use this in a lightweight gate job whose output later jobs check before running: | ||
|
|
||
| ```yaml | ||
| skip-ci-check: |
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.
Adds a
skip_ci_checkcomposite action that factors out the inline commit-message gate currently duplicated in every repo'smain.yaml.It takes the commit message as a required
commit_messageinput (composite actions cannot reliably read the event payload across trigger types) and exposes ashould_skip_cioutput ("true"/"false") based on whether the message contains[no ci],[skip ci]or[ci skip]. The message is passed via anenvvar rather than interpolated into the script body.This will be adopted by the CircleCI to GHA migration workflows so the skip-CI gate lives in one auditable place instead of being copy-pasted per repo.
README updated with a usage example. No tag changes —
v1is moved by a human after merge.