Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit 480a764

Browse files
committed
Generate commit list changes in release.yml
1 parent 2ac7d06 commit 480a764

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,18 @@ jobs:
6666
run: |
6767
git fetch --tags
6868
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "")
69-
echo "COMMITS<<EOF" >> $GITHUB_OUTPUT
69+
7070
if [ -z "$LAST_TAG" ]; then
71-
git log --pretty=format:"- %s (%h)" >> $GITHUB_OUTPUT
71+
COMMITS=$(git log --pretty=format:"- %s (%h)")
7272
else
73-
git log ${LAST_TAG}..HEAD --pretty=format:"- %s (%h)" >> $GITHUB_OUTPUT
73+
COMMITS=$(git log ${LAST_TAG}..HEAD --pretty=format:"- %s (%h)")
7474
fi
75-
echo "EOF" >> $GITHUB_OUTPUT
75+
76+
{
77+
echo "COMMITS<<END"
78+
echo "$COMMITS"
79+
echo "END"
80+
} >> $GITHUB_OUTPUT
7681
7782
- name: Create Git Tag (if not exists) # this is p smart actually
7883
run: |

0 commit comments

Comments
 (0)