Skip to content

[Bug]: Draft release gets created, and empty release gets published #772

@the-phinet

Description

@the-phinet

Pre-flight checks

  • I searched existing issues and did not find a duplicate
  • I reproduced this with the latest released version or current master
  • I included a reproducible example or a sanitized/redacted reproduction path if the original repository is private

action-gh-release version

v2.6.1

Runner operating system

ubuntu-latest

Reproduction repo, gist, or artifact

https://github.com/UZDoom/UZDoom/blob/trunk/.github/workflows/upload_nightly.yml

Expected behavior

A release gets generated and published, replacing the old one.

Actual behavior

Previous release gets assets updated, but is converted to a draft. A new (empty) release is published.

Image

Steps to reproduce

  1. Trigger workflow
  2. Receive email that a new release was published
  3. Receive email that workflow failed

Relevant logs

https://github.com/UZDoom/UZDoom/actions/runs/23395084749/job/68094445869

Deleted tag 'nightly' (was e96c9124b)
To https://github.com/UZDoom/UZDoom
 - [deleted]             nightly
To https://github.com/UZDoom/UZDoom
 * [new tag]             nightly -> nightly
👩‍🏭 Creating new GitHub release for tag nightly...
↪️ Using release 286438182 for tag nightly instead of duplicate draft 299942041
♻️ Deleting previously uploaded asset Windows-UZDoom-Nightly.zip...
♻️ Deleting previously uploaded asset MacOS-UZDoom-Nightly.zip...
♻️ Deleting previously uploaded asset Linux-UZDoom-Nightly.AppImage...
⬆️ Uploading Windows-UZDoom-Nightly.zip...
⬆️ Uploading Linux-UZDoom-Nightly.AppImage...
⬆️ Uploading MacOS-UZDoom-Nightly.zip...
✅ Uploaded Windows-UZDoom-Nightly.zip
✅ Uploaded MacOS-UZDoom-Nightly.zip
✅ Uploaded Linux-UZDoom-Nightly.AppImage
Finalizing release...
error finalizing release: HttpError: Validation Failed: {"resource":"Release","code":"already_exists","field":"tag_name"} - https://docs.github.com/rest/releases/releases#update-a-release
retrying... (2 retries remaining)
error finalizing release: HttpError: Validation Failed: {"resource":"Release","code":"already_exists","field":"tag_name"} - https://docs.github.com/rest/releases/releases#update-a-release
retrying... (1 retries remaining)
error finalizing release: HttpError: Validation Failed: {"resource":"Release","code":"already_exists","field":"tag_name"} - https://docs.github.com/rest/releases/releases#update-a-release
retrying... (0 retries remaining)
❌ Too many retries. Aborting...
Error: Too many retries.

Additional context

This worked fine until very recently: https://github.com/UZDoom/UZDoom/actions/workflows/upload_nightly.yml (runs 47-50 are affected)

I think this might be related to #379

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions