Repository navigation
fix(ci): use comma-separated FILE_PATHS for commit-action - #485
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes a delimiter mismatch in release-related GitHub Actions workflows so vig-os/commit-action correctly commits multiple files (notably both repo and workspace devcontainer changelogs), and adds regression tests to prevent reintroduction.
Changes:
- Switch
FILE_PATHSto comma-separated values in.github/workflows/prepare-release.ymlcommit-action steps. - Join finalization file paths with commas in
.github/workflows/release.ymlbefore passing to commit-action. - Add BATS assertions to validate the above workflow formatting; add matching changelog entries.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/prepare-release.yml |
Updates commit-action FILE_PATHS to comma-delimited for multi-file commits. |
.github/workflows/release.yml |
Joins CHANGED_FILES with commas so commit-action receives a proper multi-path list. |
tests/bats/just.bats |
Adds regression tests ensuring comma-delimited file path lists are used. |
CHANGELOG.md |
Records the fix under Unreleased/Fixed. |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors the changelog entry in the workspace devcontainer changelog. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
Fix
FILE_PATHSdelimiter mismatch inprepare-release.ymlandrelease.ymlworkflows. Thecommit-actionsplits on commas, butFILE_PATHSwas passed as space-separated values, causing both commit steps to silently no-op with "No files to commit." This PR switches allFILE_PATHSvalues to comma-separated socommit-actioncorrectly commits bothCHANGELOG.mdandassets/workspace/.devcontainer/CHANGELOG.md.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/prepare-release.yml(+3 −3)FILE_PATHSfrom space-separated to comma-separated in all threecommit-actionsteps (freeze changelog on dev, strip changelog on release branch, rollback on failure).github/workflows/release.yml(+1 −1)tr '\n' ' 'totr '\n' ','in the "Collect finalization files" step socommit-actionreceives comma-delimited pathstests/bats/just.bats(+10)prepare-release.ymldoes not use space-separatedFILE_PATHSfor multi-file valuesrelease.ymljoins finalization file paths with commasCHANGELOG.md(+3)assets/workspace/.devcontainer/CHANGELOG.md(+3)Changelog Entry
Fixed
FILE_PATHSfrom space-separated to comma-separated in allcommit-actionsteps ofprepare-release.ymlso the action correctly commits bothCHANGELOG.mdandassets/workspace/.devcontainer/CHANGELOG.mdrelease.yml(Collect finalization files) socommit-actionreceives multiple paths correctlyTesting
just test)Manual Testing Details
N/A
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
N/A
Refs: #483