422 error 'body is too long'
joshuasimon-taulia opened this issue Β· comments
Joshua S commented
when running this example workflow step against an older repo with a lot of commits:
- name: Release
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
with:
tag_name: ${{ inputs.git-tag }}
body_path: ../changelog.md
token: ${{ env.GITHUB_TOKEN_ORG }}
generate_release_notes: ${{ inputs.changelog == '' && true || false }}
repository: ${{ github.repository }}
it fails with
Run softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
π©βπ Creating new GitHub release for tag v0.1.0...
β οΈ GitHub release failed with status: 422
[{"resource":"Release","code":"custom","field":"body","message":"body is too long (maximum is 125000 characters)"}]
retrying... (2 retries remaining)
π©βπ Creating new GitHub release for tag v0.1.0...
β οΈ GitHub release failed with status: 422
[{"resource":"Release","code":"custom","field":"body","message":"body is too long (maximum is 125000 characters)"}]
retrying... (1 retries remaining)
π©βπ Creating new GitHub release for tag v0.1.0...
β οΈ GitHub release failed with status: 422
[{"resource":"Release","code":"custom","field":"body","message":"body is too long (maximum is 125000 characters)"}]
retrying... (0 retries remaining)
β Too many retries. Aborting...
Error: Too many retries.
I would expect the action to truncate the body
to 125000 characters