fix: use GITHUB_REPOSITORY env for release notes

This commit is contained in:
Alexis Tyler
2021-03-28 18:25:07 -07:00
parent ad5eecb3f1
commit 19e14e8a51

View File

@@ -208,7 +208,7 @@ jobs:
# Get the last release tag
LAST_RELEASE=$(git tag --list --sort=v:refname | tail -1); \
# Get all the commit messages between now and the last tag
RELEASE_NOTES=$(git log "$LAST_RELEASE...HEAD" --pretty=format:"- %s [\`%h\`](http://github.com/$ORG/$REPO/commit/%H)" --reverse) \
RELEASE_NOTES=$(git log "$LAST_RELEASE...HEAD" --pretty=format:"- %s [\`%h\`](http://github.com/$GITHUB_REPOSITORY/commit/%H)" --reverse) \
# Save release notes to a file
echo $RELEASE_NOTES > RELEASE_NOTES.md
@@ -260,7 +260,7 @@ jobs:
# Get the last release tag
LAST_RELEASE=$(git tag --list --sort=v:refname | grep -v 'alpha\|beta\|rc' | tail -1); \
# Get all the commit messages between now and the last non-pre-release tag
RELEASE_NOTES=$(git log "$LAST_RELEASE...HEAD" --pretty=format:"- %s [\`%h\`](http://github.com/$ORG/$REPO/commit/%H)" --reverse) \
RELEASE_NOTES=$(git log "$LAST_RELEASE...HEAD" --pretty=format:"- %s [\`%h\`](http://github.com/$GITHUB_REPOSITORY/commit/%H)" --reverse) \
# Save release notes to a file
echo $RELEASE_NOTES > RELEASE_NOTES.md