fix: use fullpath for release notes and log them for debugging

This commit is contained in:
Alexis Tyler
2021-03-28 19:11:57 -07:00
parent eaecee424e
commit 6da8628512

View File

@@ -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