Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-calautti authored Dec 27, 2023
1 parent 9ff5579 commit 137c287
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 137c287

Please sign in to comment.