action-gh-release
action-gh-release copied to clipboard
Release url in the body
Is there any way to have the release URL in the body? Something like:
- name: Create Release
id: create_release
uses: softprops/[email protected]
with:
name: Release ${{ github.ref_name }}
draft: false
prerelease: false
files: |
artifact.zip
body: |
Download: [artifact.zip](${{ url }}/artifact.zip)
You could create the URL in another step and call it using the GitHub output semantics:
- id: release_url
run: echo "url=example-url" >> "$GITHUB_OUTPUT"
- uses: softprops/[email protected]
with:
body: |
Download: [artifact.zip](${{ steps.release_url.outputs.url }}/artifact.zip) # example-url/artifact.zip