-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Release Workflow: Add github.ref validation #71404
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
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Let's rebase this to resolve the failing CI check. I'm not an expert when it comes to GH actions, but validation logic looks okay to me. |
42c78c3 to
423ac7e
Compare
|
I have this on my list and I'm hoping to review today. |
|
Flaky tests detected in 423ac7e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/17430628965
|
cbravobernal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's see how it handles on the next release.
|
Warning: Type of PR label mismatch To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. Don't worry if you don't have the required permissions to add labels; the PR reviewer should be able to help with the task. |
|
The new release workflow seems to work nicely:
@desrosj, please let us know if there are any improvements we can make to this workflow. |


See the discussion on Slack for more details: https://wordpress.slack.com/archives/C02QB2JS7/p1756287157774339
What?
This PR adds a
github.refvalidation to prevent unintended SVN commit when publishing the plugin.Why?
When I ran the 21.5 stable release, I encountered a strange problem where commits were only added to
tagsand nottrunk.https://github.com/WordPress/gutenberg/actions/runs/17263363144/attempts/1
After investigation, we found that for some reason
github.refwas empty, which caused the newly released version to be determined to be "lower" than the plugin version already released, resulting inshould_update_trunkbeing set tofalse.This variable should be
truewhen a stable version is released:Maybe I did something wrong in the release process, but we haven't found out the reason yet.
How?
At the beginning of the two jobs, add a new job that checks if the
github.refvalue is empty. We should investigate why thegithub.refcan be empty in the first place, but this new job should prevent unintended changelog updates and SVN commits.Testing Instructions
We are not able to test this PR at the moment, but I would like to share this PR with the 21.6 release lead and explain that the workflow has changed slightly.