Skip to content

Commit

Permalink
build: fix changelog updating
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Jun 11, 2024
1 parent b7694e6 commit 201d86d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build-and-bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,18 @@ jobs:
- name: Update Changelog
run: |
commits_since_last_publish=$(git log :/bump.. --format="- %cs %s")
echo "$commits_since_last_publish" |
bla=""
commits_since_last_publish=$(
git log :/bump.. --format="- %cs %s" |
grep -vE "build|ci|style|bump" | # don't include internal changes
sed -E "s/^(- [0-9-]+) ([^ ]+): /\1 **\2**: /" | # bold title
grep -v "^$" > "temp.md"
cat "Changelog.md" >> "temp.md"
mv -f "temp.md" "Changelog.md"
grep -v "^$"
)
if [[ -n "$commits_since_last_publish" ]] ; then
echo "$commits_since_last_publish" >> "temp.md"
cat "Changelog.md" >> "temp.md"
mv -f "temp.md" "Changelog.md"
fi
#─────────────────────────────────────────────────────────────────────────

Expand Down

0 comments on commit 201d86d

Please sign in to comment.