We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fcadf2 commit eebb8edCopy full SHA for eebb8ed
.github/workflows/release.yml
@@ -39,8 +39,16 @@ jobs:
39
id: tag
40
run: |
41
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'}"
50
echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
- echo "tag_message=$(git tag -l --format='%(contents)' $TAG_NAME)" >> $GITHUB_OUTPUT
51
+ echo "tag_message=$TAG_MSG" >> $GITHUB_OUTPUT
52
53
- name: Generate Release Notes
54
uses: softprops/action-gh-release@v2
0 commit comments