Skip to content

Add workaround for release publishing action mishandling draft: true -> false transition#444

Merged
huonw merged 2 commits into
mainfrom
huonw/release-fix-again
Dec 12, 2024
Merged

Add workaround for release publishing action mishandling draft: true -> false transition#444
huonw merged 2 commits into
mainfrom
huonw/release-fix-again

Conversation

@huonw
Copy link
Copy Markdown
Contributor

@huonw huonw commented Dec 11, 2024

This works around softprops/action-gh-release not being able to properly "publish" a release by changing draft: true to draft: false.

The intention is that the step with draft: false would find the existing draft release and update it (publishing it). This is what correctly happened for a testing v0.12.3-beta.3 release from this branch: https://github.com/pantsbuild/scie-pants/releases/tag/v0.12.3-beta.3 (I also did attempted a v0.12.3-beta.2 from this branch, but that used a newer version of the action code and failed completely, see below.)

Previously, the action would fail to find the existing draft release and instead create a duplicate one. The old behaviour is visible (to people who can see draft releases) with v0.12.3-beta.0 and -beta.1:

image

The particular new version of the action is:

@huonw huonw marked this pull request as ready for review December 11, 2024 05:48
@huonw huonw changed the title Add workaround for action mishandling of draft: true -> false transition Add workaround for release publishing action mishandling draft: true -> false transition Dec 11, 2024
@huonw huonw requested a review from benjyw December 11, 2024 05:49
Copy link
Copy Markdown
Contributor

@benjyw benjyw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully that PR gets upstreamed soon... Can we prompt them about it?

@huonw
Copy link
Copy Markdown
Contributor Author

huonw commented Dec 12, 2024

I've left a comment because it seemed like seeing real world usage was part of the review process, good call-out.

@huonw huonw deleted the huonw/release-fix-again branch December 12, 2024 02:13
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

Successfully merging this pull request may close these issues.

2 participants