Skip to content

Commit d454b68

Browse files
fix(workflow): Correct YAML syntax and improve consistency
- Pass github.repository as an environment variable to the release notes generation step to avoid YAML parsing errors with HEREDOC. - Use the new environment variable consistently for all repository URLs within the script for improved robustness.
1 parent cde2e63 commit d454b68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
env:
4040
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
PREVIOUS_TAG: ${{ env.previous_tag }}
42+
GITHUB_REPOSITORY: ${{ github.repository }}
4243
run: |
4344
RELEASE_BODY=$(cat <<EOF
4445
**Ollama Bash Lib $CURRENT_TAG**
@@ -47,7 +48,7 @@ A Bash Library for Ollama
4748

4849
Run LLM prompts straight from your shell, and more
4950

50-
Repo: https://github.com/${{ github.repository }}
51+
Repo: https://github.com/$GITHUB_REPOSITORY
5152
EOF
5253
)
5354

@@ -59,7 +60,7 @@ EOF
5960
fi
6061

6162
# Add link to compare with previous version
62-
RELEASE_BODY="${RELEASE_BODY}See all commits since last release: https://github.com/${{ github.repository }}/compare/${PREVIOUS_TAG}...${CURRENT_TAG}"
63+
RELEASE_BODY="${RELEASE_BODY}See all commits since last release: https://github.com/$GITHUB_REPOSITORY/compare/${PREVIOUS_TAG}...${CURRENT_TAG}"
6364

6465
echo "RELEASENOTES<<EOF" >> $GITHUB_ENV
6566
echo -e "$RELEASE_BODY" >> $GITHUB_ENV

0 commit comments

Comments
 (0)