Skip to content

Commit 979f9fe

Browse files
committed
chore: fix release action
1 parent 91b7d2b commit 979f9fe

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ jobs:
8888
- name: Get tag information
8989
id: tag_info
9090
run: |
91-
TAG_MESSAGE=$(git for-each-ref refs/tags/${{ github.ref_name }} --format='%(contents)' | sed -e :a -e '/^\n*$/{$d;N;ba' -e '}' | sed -e '/./,$!d')
92-
if [ -n "$TAG_MESSAGE" ]; then
93-
echo "tag_message<<EOF" >> $GITHUB_OUTPUT
94-
echo "$TAG_MESSAGE" >> $GITHUB_OUTPUT
95-
echo "EOF" >> $GITHUB_OUTPUT
96-
else
97-
echo "tag_message=No description provided for this tag." >> $GITHUB_OUTPUT
91+
TAG_MESSAGE=$(git tag -l --format='%(contents)' "${GITHUB_REF#refs/tags/}")
92+
if [ -z "$TAG_MESSAGE" ]; then
93+
TAG_MESSAGE="No description provided for this tag."
9894
fi
95+
echo "tag_message<<EOF" >> $GITHUB_OUTPUT
96+
echo "$TAG_MESSAGE" >> $GITHUB_OUTPUT
97+
echo "EOF" >> $GITHUB_OUTPUT
98+
echo "TAG_MESSAGE: $TAG_MESSAGE"
9999
- name: Download all artifacts
100100
uses: actions/download-artifact@v4
101101
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "algo-bootstrap",
33
"productName": "Algo Bootstrap",
4-
"version": "1.0.0-alpha.5",
4+
"version": "1.0.0-alpha.6",
55
"description": "A Bootstrap for algorithm beginners",
66
"main": "./dist/main/main.js",
77
"author": {

0 commit comments

Comments
 (0)