Skip to content

Commit d465bcf

Browse files
authored
fixes skip pipeline logic (#413)
## Summary Refactored the GitHub Actions workflow to use an environment variable for the commit message instead of directly embedding it in the run command. ## Changes - Moved the commit message from an inline variable in the `run` command to a proper environment variable declaration - This improves readability and follows best practices for GitHub Actions workflows ## Type of change - [ ] Bug fix - [ ] Feature - [x] Refactor - [ ] Documentation - [x] Chore/CI ## Affected areas - [ ] Core (Go) - [ ] Transports (HTTP) - [ ] Providers/Integrations - [ ] Plugins - [ ] UI (Next.js) - [ ] Docs ## How to test This change can be verified by ensuring the GitHub Actions workflow still correctly identifies commits with the `--skip-pipeline` flag. ```sh # Make a commit with the --skip-pipeline flag git commit -m "Some change --skip-pipeline" # Push and verify the workflow skips as expected git push ``` ## Breaking changes - [ ] Yes - [x] No ## Security considerations No security implications as this is a minor refactoring of how environment variables are handled in the workflow. ## Checklist - [x] I read `docs/contributing/README.md` and followed the guidelines - [x] I added/updated tests where appropriate - [x] I updated documentation where needed - [x] I verified builds succeed (Go and UI) - [x] I verified the CI pipeline passes locally if applicable
2 parents 2e3698b + cb1fb7b commit d465bcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release-pipeline.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ jobs:
1919
steps:
2020
- name: Check if pipeline should be skipped
2121
id: check
22+
env:
23+
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
2224
run: |
23-
COMMIT_MESSAGE="${{ github.event.head_commit.message }}"
2425
FIRST_LINE=$(echo "$COMMIT_MESSAGE" | head -n 1)
2526
if [[ "$FIRST_LINE" == *"--skip-pipeline"* ]]; then
2627
echo "should-skip=true" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)