Skip to content

Commit eebb8ed

Browse files
committed
chore: bump version to 0.3.0
1 parent 9fcadf2 commit eebb8ed

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,16 @@ jobs:
3939
id: tag
4040
run: |
4141
TAG_NAME=${GITHUB_REF#refs/tags/}
42+
# Fetch the tag to ensure we have its data
43+
git fetch --tags --force
44+
# Get the tag message using git show
45+
TAG_MSG=$(git tag -l --format='%(contents)' "$TAG_NAME")
46+
# Properly escape the message for GitHub Actions
47+
TAG_MSG="${TAG_MSG//'%'/'%25'}"
48+
TAG_MSG="${TAG_MSG//$'\n'/'%0A'}"
49+
TAG_MSG="${TAG_MSG//$'\r'/'%0D'}"
4250
echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
43-
echo "tag_message=$(git tag -l --format='%(contents)' $TAG_NAME)" >> $GITHUB_OUTPUT
51+
echo "tag_message=$TAG_MSG" >> $GITHUB_OUTPUT
4452
4553
- name: Generate Release Notes
4654
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)