From 6da862851271a7a94d346502946518b742e9b4ee Mon Sep 17 00:00:00 2001 From: Alexis Tyler Date: Sun, 28 Mar 2021 19:11:57 -0700 Subject: [PATCH] fix: use fullpath for release notes and log them for debugging --- .github/workflows/main.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2cfe8f43a..7eb324daa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -221,12 +221,14 @@ jobs: # 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/$GITHUB_REPOSITORY/commit/%H)" --reverse) \ # Save release notes to a file - echo $RELEASE_NOTES > RELEASE_NOTES.md + echo $RELEASE_NOTES > ${{ github.workspace }}/RELEASE_NOTES.md && \ + # Log release notes + cat ${{ github.workspace }}/RELEASE_NOTES.md - name: Create Github release uses: softprops/action-gh-release@v1 with: - body_path: RELEASE_NOTES.md + body_path: ${{ github.workspace }}/RELEASE_NOTES.md draft: false prerelease: true files: unraid-api-*.tgz @@ -273,12 +275,14 @@ jobs: # 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/$GITHUB_REPOSITORY/commit/%H)" --reverse) \ # Save release notes to a file - echo $RELEASE_NOTES > RELEASE_NOTES.md + echo $RELEASE_NOTES > ${{ github.workspace }}/RELEASE_NOTES.md && \ + # Log release notes + cat ${{ github.workspace }}/RELEASE_NOTES.md - name: Create Github release uses: softprops/action-gh-release@v1 with: - body_path: RELEASE_NOTES.md + body_path: ${{ github.workspace }}/RELEASE_NOTES.md draft: false prerelease: false files: unraid-api-*.tgz