Skip to content

Commit

Permalink
Merge pull request #27 from marco-calautti/marco-calautti-patch-3
Browse files Browse the repository at this point in the history
Fix auto-release content text
  • Loading branch information
marco-calautti authored Dec 27, 2023
2 parents 9ff5579 + 137c287 commit 728b53d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,14 @@ jobs:

- if: contains(github.ref, 'refs/tags/')
name: Get Tag Message
id: tag_message
run: |
cd ${{github.workspace}}
echo 'TAG_MESSAGE<<EOF' >> $GITHUB_OUTPUT
echo "$(git for-each-ref refs/tags/${{github.ref_name}} --format='%(contents)')" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
run: echo "$(git for-each-ref refs/tags/${{github.ref_name}} --format='%(contents)')" >> release_notes.txt

- if: contains(github.ref, 'refs/tags/')
name: Prepare Release
uses: softprops/action-gh-release@v1
with:
name: Delta Patcher ${{ github.ref_name }}
body: ${{ steps.tag_message.outputs.TAG_MESSAGE }}
body_path: release_notes.txt
draft: false
prerelease: false
generate_release_notes: false
Expand Down

0 comments on commit 728b53d

Please sign in to comment.