-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Sync backport changelog action: Use outputs instead of env #63792
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. |
Looks like this is because https://github.com/noisysocks/gutenberg/actions/runs/10034745885/job/27729718762 |
talldan
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.
LGTM
|
Why does it not work here. Env should work just fine, like here: gutenberg/.github/workflows/cherry-pick-wp-release.yml Lines 99 to 105 in d0b82da
|
|
Hmm. The example you linked to uses |
The Sync Issue step in the Sync Core Backport Issue workflow wasn't working.
In 8bb22a2 this step was made conditional so that it would only run if there are changes within the
backport-changelogdirectory.But, for example, it didn't run here even though there were changes in the
backport-changelogdirectory:https://github.com/WordPress/gutenberg/actions/runs/9950072850/job/27487350407
To fix, I've updated the step's
ifto usesteps.$id.outputs.$varinstead ofenv.$var. This is what's in the GitHub Actions docs.I tested this in a fork of Gutenberg. You can see the step correctly being skipped when there are no changes here:
https://github.com/noisysocks/gutenberg/actions/runs/10034541947/job/27729221457
And you can see the step correctly running when there are changes here:
https://github.com/noisysocks/gutenberg/actions/runs/10034606864/job/27729375022
(The step then fails for some reason, but we only care that it isn't skipped.)