action-gh-release icon indicating copy to clipboard operation
action-gh-release copied to clipboard

Release url in the body

Open MangaD opened this issue 2 years ago • 1 comments

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)

MangaD avatar May 02 '23 15:05 MangaD

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

kevinmatthes avatar Jun 21 '23 00:06 kevinmatthes