Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

422 error 'body is too long' #374

Open
joshuasimon-taulia opened this issue Jul 20, 2023 · 1 comment
Open

422 error 'body is too long' #374

joshuasimon-taulia opened this issue Jul 20, 2023 · 1 comment

Comments

@joshuasimon-taulia
Copy link

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

@markoueis
Copy link

What can be done about this? Any workarrounds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants