Skip to content

Getting 422 "already_exists" error on 2.2.2 #616

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

Open
Bertg opened this issue Apr 29, 2025 · 6 comments
Open

Getting 422 "already_exists" error on 2.2.2 #616

Bertg opened this issue Apr 29, 2025 · 6 comments

Comments

@Bertg
Copy link

Bertg commented Apr 29, 2025

After upgrading we get this error in our output.

Run softprops/action-gh-release@v2.2.2
  with:
    target_commitish: c75edc7a731e637485d4a6bb7f707e7ba95f38e3
    tag_name: graph@v20250429.0
    append_body: true
    body: [...]
    token: ***
  env:
    COMMITS: [...]
👩‍🏭 Creating new GitHub release for tag graph@v20250429.0 using commit "c75edc7a731e637485d4a6bb7f707e7ba95f38e3"...
⚠️ GitHub release failed with status: 422
{"message":"Validation Failed","errors":[{"resource":"Release","code":"already_exists","field":"tag_name"}],"documentation_url":"https://docs.github.com/rest/releases/releases#create-a-release","status":"422"}
Skip retry - validation failed
⚠️ Unexpected error fetching GitHub release for tag refs/heads/main: HttpError: Validation Failed: {"resource":"Release","code":"already_exists","field":"tag_name"} - https://docs.github.com/rest/releases/releases#create-a-release
Error: Validation Failed: {"resource":"Release","code":"already_exists","field":"tag_name"} - https://docs.github.com/rest/releases/releases#create-a-release

This is the action:

  publish_release:
    name: ✨ Publish Release
    runs-on: ubuntu-latest
    steps:
      - [...]
      - name: ✨ Publish Release
        uses: softprops/action-gh-release@v2.2.2
        with:
          target_commitish: ${{ inputs.sha }}
          tag_name: ${{ inputs.name }}
          body: |-
            ## Changes made in Release ${{ inputs.name }}
      - [...]

Any idea what is going on?

@c3rcw
Copy link

c3rcw commented Apr 29, 2025

same

1 similar comment
@hronro
Copy link

hronro commented Apr 30, 2025

same

@RadxaYuntian
Copy link

Duplicate of #613?

@hronro
Copy link

hronro commented May 1, 2025

@RadxaYuntian not duplicate, me fails on uploading release assets either.

@ELY3M
Copy link

ELY3M commented May 14, 2025

I am having same issue!!!!

@ELY3M
Copy link

ELY3M commented May 14, 2025

I have to change my actions to use this version 2.2.1

- name: Upload Release
  uses: softprops/action-gh-release@v2.2.1
  with:
    draft: false
    prerelease: false    
    tag_name: ${{ github.run_number }}
    body: ${{ github.event.head_commit.message }}
    files: ${{ github.workspace }}\filename.dll
  env:
    GITHUB_TOKEN: ${{ github.token }} 

then my actions is working again.

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

5 participants