mirror of
https://github.com/unraid/api.git
synced 2026-01-06 16:49:49 -06:00
fix: use GITHUB_REPOSITORY env for release notes
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user