feat: Playground プレビューのホスティング用リリースを自動公開#119
Merged
Merged
Conversation
expose-artifact-on-public-url は ZIP を ci-artifacts リリースの アセットとして再ホストするが、リリースを draft で作成するため、 draft リリースのアセットは匿名アクセスで 404 となり Playground が ZIP を取得できなかった。 expose 後にリリースを自動公開する手順を追加。upstream が draft に している理由(releases 一覧の汚染・watcher への通知)を尊重し、 keep_release_draft オプションで従来の draft 維持も選べるようにした。 release_tag も input 化。 Co-authored-by: Claude <noreply@anthropic.com>
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.
背景
hamelp で Playground プレビューが参照できない事象を調査したところ、
expose-artifact-on-public-url(WordPress/action-wp-playground-pr-preview)が ZIP をホストするci-artifactsリリースを--draftで作成していることが原因と判明した。draft リリースのアセットは匿名アクセスで 404 になるため、ブラウザ上で動く WordPress Playground が ZIP を取得できない。
実際に hamelp では以下のタイムラインを確認:
createdAt: 今日 06:55(アクションが draft で作成)publishedAt: 今日 09:48(手動 publish)変更内容
gh release edit <tag> --draft=false、冪等)keep_release_draft(デフォルトfalse)で従来の draft 維持も選べるようにしたrelease_tagを input 化(デフォルトci-artifacts)し、expose アクションにも渡すよう統一影響
--draft=falseは冪等)@main参照の全プラグインに反映される検証
!inputs.keep_release_draftは boolean input で正しく評価される🤖 Generated with Claude Code