Skip to content

Commit cde2e63

Browse files
fix: Use HEREDOC for more readable release description
This changes the release workflow to use a HEREDOC for the main release body text. This makes the description much easier for humans to edit, as it avoids a single long line with ` ` newline characters.
1 parent 47da3ff commit cde2e63

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/create.release.for.tag.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,16 @@ jobs:
4040
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
PREVIOUS_TAG: ${{ env.previous_tag }}
4242
run: |
43-
RELEASE_BODY="**Ollama Bash Lib $CURRENT_TAG**\n\nA Bash Library for Ollama\n\nRun LLM prompts straight from your shell, and more\n\nRepo: https://github.com/${{ github.repository }}\n\n"
43+
RELEASE_BODY=$(cat <<EOF
44+
**Ollama Bash Lib $CURRENT_TAG**
45+
46+
A Bash Library for Ollama
47+
48+
Run LLM prompts straight from your shell, and more
49+
50+
Repo: https://github.com/${{ github.repository }}
51+
EOF
52+
)
4453

4554
# Generate changelog
4655
CHANGELOG=$(git log --pretty=format:"* %s (%h)" $PREVIOUS_TAG..$CURRENT_TAG)

0 commit comments

Comments
 (0)