Workflows: update Playground PR preview action to v4 - #985
Merged
Merged
Conversation
Moves the preview button step from the v2 commit to v4.0.0. The mode, plugin-path, pr-number and github-token inputs are unchanged in v4. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the preview button step from the v2 commit to v4.0.0 (
1b15093).This was the only reference still on v2 across the org's callers.
Why
v4.0.0 is the current major of
WordPress/action-wp-playground-pr-preview. The v3 tag was re-released as v3.0.1 with an upgrade warning that now prints on every run, so anything still on v3 (or older) logs a deprecation notice until it moves.v4 behaviour changes, checked against this workflow
Template variables render as literal text.
PR_*/REPO_*placeholders must sit outside Markdown code spans and fences. This workflow uses the default templates, so nothing to change.Comment mode matches on the author behind
github-token. Not applicable — this workflow posts inappend-to-descriptionmode.Artifact bundles must contain ordinary files and directories. The legacy helper now extracts only the requested
artifact-filenameinto a temp directory instead of unpacking the whole bundle into the workspace.PR-number spelling is normalised for uploads and cleanup in the reusable publisher (
007→7). Previously uploaded assets are not renamed.Action inputs are unchanged.
mode,plugin-path,pr-numberandgithub-tokenall exist in v4 with the same meaning.Testing
The preview button posted on this PR comes from the surrounding
workflow_runjob, which reads this workflow frommaster, so the v4 step runs once this lands. The diff is a singleuses:ref.🤖 Generated with Claude Code