From 19e14e8a513a0df7b00e5469681cac2ebc407c50 Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Sun, 28 Mar 2021 18:25:07 -0700 Subject: [PATCH] fix: use GITHUB_REPOSITORY env for release notes --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 44ed1feb8..7f9a70cc9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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