MeFisto94 / lwjgl

[LEGACY] LWJGL 2.X - The Lightweight Java Game Library.
http://legacy.lwjgl.org/
2 stars 1 forks source link

GitHub release failed with status: 422 #3

Open Ali-RS opened 1 year ago

Ali-RS commented 1 year ago

Hi @MeFisto94

When creating a release it fails with

Run softprops/action-gh-release@v1
👩‍🏭 Creating new GitHub release for tag refs/tags/v2.9.4...
⚠️ GitHub release failed with status: 422
[{"resource":"Release","code":"already_exists","field":"tag_name"}]
retrying... (2 retries remaining)
👩‍🏭 Creating new GitHub release for tag refs/tags/v2.9.4...
⚠️ GitHub release failed with status: 422
[{"resource":"Release","code":"already_exists","field":"tag_name"}]
retrying... (1 retries remaining)
👩‍🏭 Creating new GitHub release for tag refs/tags/v2.9.4...
⚠️ GitHub release failed with status: 422
[{"resource":"Release","code":"already_exists","field":"tag_name"}]
retrying... (0 retries remaining)
❌ Too many retries. Aborting...
Error: Too many retries.

Action logs: https://github.com/Ali-RS/lwjgl/actions/runs/3857404592

Do you perhaps know how can I fix it?

Ali-RS commented 1 year ago

It seems I can not do this from the GitHub web interface? Using the "create new release" button will fail with the above error. If I create a tag from IDE and push it to GitHub then it works fine.

Ali-RS commented 1 year ago

Using svenstaro/upload-release-action@v2 action fixes the issue. https://github.com/Ali-RS/lwjgl/commit/1f3d62fb2343d634f39bc943febd15bcc20a8108