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

The body of a release is overwritten with the content of `body_path` or `body`

Open FirelightFlagboy opened this issue 2 years ago • 1 comments

Prelude

Hi,

I'm using this action to create a release.

I provide a body to that release that contain the check sum of the released artifacts.

Those check sum aren't stable since we don't have reproducible build at the moment.

Using body_path

That body come from a generated file that is provided within the field body_path.

It appends that I run the workflow twice and the body wasn't updated of the second run.

It's currently configured like so:

      - name: Create release
        if: github.event_name == 'push'
        uses: softprops/action-gh-release@c9b46fe7aad9f02afd89b12450b780f52dacfb2d
        with:
          draft: true
          body_path: release-summary.md
          name: Release v${{ needs.version.outputs.full }}
          tag_name: v${{ needs.version.outputs.full }}
          files: foobar.md
          fail_on_unmatched_files: true
          generate_release_notes: false
        timeout-minutes: 5

Using body

I've also tried to use body instead of body_path with no luck, the body of the release is still not updated.

      - name: Create release
        if: github.event_name == 'push'
        uses: softprops/action-gh-release@c9b46fe7aad9f02afd89b12450b780f52dacfb2d
        with:
          draft: true
          body: ${{ steps.summary.outputs.output }} 
          name: Release v${{ needs.version.outputs.full }}
          tag_name: v${{ needs.version.outputs.full }}
          files: foobar.md
          fail_on_unmatched_files: true
          generate_release_notes: false
        timeout-minutes: 5

What I'm expected

I would expect that the body is updated.

FirelightFlagboy avatar Jun 08 '23 07:06 FirelightFlagboy

I've done some testing on my side, I've created a small repo for that https://github.com/FirelightFlagboy/action-gh-release-test

FirelightFlagboy avatar Jun 14 '23 07:06 FirelightFlagboy