Skip to content

Commit

Permalink
hotfix/fix finding of rejected cruft files
Browse files Browse the repository at this point in the history
  • Loading branch information
cutoffthetop committed Mar 11, 2024
1 parent 725373d commit cb3e3d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- fix finding of rejected cruft files

### Security

## [0.1.0] - 2024-03-11
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ jobs:
git checkout -b cruft/cookiecutter-template-${template_ref}
cruft update --skip-apply-ask
printf '# Changes\n\n- bumped cookiecutter template to %s/commit/%s\n' "$template_url" "$template_ref" > .cruft-pr-body
if [[ $(git status --porcelain | grep .rej | wc -c) -ne 0 ]]; then
if [[ $(find . -type f -name "*.rej" | wc -l) -ne 0 ]]; then
printf '\n# Conflicts\n' > .cruft-pr-body
fi
git status --porcelain | grep .rej | awk '{print $2;}' | while read -r line ; do
find . -type f -name "*.rej" | while read -r line ; do
printf '\n```' >> .cruft-pr-body
cat ${line} >> .cruft-pr-body
printf '```\n' >> .cruft-pr-body
Expand Down

0 comments on commit cb3e3d3

Please sign in to comment.