Skip to content

Generate release notes leading to invalid json response body #262

@ashubisht

Description

@ashubisht

Describe the bug
Hi, I want to create release on merge of branch. I have set option generateReleaseNotes to true, but I am getting:
Error: Error 500: invalid json response body at https://api.github.com/repos/<group>/<project>/releases reason: Unexpected end of JSON input

To Reproduce

I am using following script to create release:
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Prepare release
id: release
run: |
echo "::set-output name=VERSION::$(jq -r .version package.json)"
echo "::set-output name=DATE::$(date +'%Y-%m-%d')"
git tag $(jq -r .version package.json)
git push origin $(jq -r .version package.json)
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.release.outputs.VERSION }}
name: Release v${{steps.release.outputs.VERSION}} ${{steps.release.outputs.DATE}}
removeArtifacts: true
generateReleaseNotes: true
env:
GITHUB_TOKEN: ${{ secrets.GIT_ACTIONS_TOKEN }}

Expected behavior
It should successfully create release

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS Monterey 12.6
  • Browser Chrome
  • Version 106

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions