Skip to content

Commit

Permalink
Testing better release message
Browse files Browse the repository at this point in the history
  • Loading branch information
thejhh committed Jan 4, 2023
1 parent f59f318 commit 46506da
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: List changes
run: git log --oneline --no-merges --format="%s" $(git describe --tags --abbrev=0)..HEAD > changes.md
run: ./scripts/get-release-message.sh
- name: Create release and tag
uses: actions/create-release@v1
env:
Expand Down
8 changes: 8 additions & 0 deletions scripts/get-release-message.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
TAG="$1"
if test "x$TAG" = x; then
TAG=$(git describe --tags --abbrev=0)
fi
cd "$(dirname "$0")/.."
echo "This release contains the following changes since $TAG:"
git log --oneline --no-merges --format="%s" "$TAG..HEAD"|sed -re 's/^/ * /g'

0 comments on commit 46506da

Please sign in to comment.