Repository navigation
fix: pass changed README files to create-pull-request one per line @osterman (#36)
## what- Add a
filesoutput to thereadmestep: the changed files, one per line. - Use it for
add-pathsin theCreate Pull Requeststep. fileand thereadme_fileoutput do not change. They stay space-separated, becausegit-auto-commitfile_pattern(commit_method: commit) needs that.
why
peter-evans/create-pull-requestsplitsadd-pathson newlines or commas. Thereadmestep returned a space-separated list (${files// / }replaced a space with a space).- When more than one file changed with
commit_method: pr,git addgotREADME.md src/README.mdas one path and failed withfatal: pathspec ... did not match any files. - Example: cloudposse-terraform-components/aws-codeartifact, where
README.mdandsrc/README.mdare both new or changed. The README job fails, socomponent / cifails and no release is cut.
references
- Repos pin
@v3. After merge, move thev3tag to the new release so all repos get the fix.
🤖 Generated with Claude Code