Add a workflow to update WordPress.org assets without a release - #97
Add a workflow to update WordPress.org assets without a release#97mayukojpn wants to merge 1 commit into
Conversation
Assets currently only reach WordPress.org when a release is published, so artwork committed to .wordpress-org/ stays invisible until the next version ships.
|
AI triaged PR 97 - see details below (full Japanese review follows) |
|
AI トリアージ: PR #97 リスク: 🟢 低(CI設定のみ) サマリー
🤖 AI triage by Claude |
詳細レビュー(クリックで展開)テスト要否
レビュワーが確認すべき箇所
設計上の懸念 なし。設計は |
| - master | ||
| paths: | ||
| - '.wordpress-org/**' | ||
| - 'README.md' |
There was a problem hiding this comment.
アクションがREADMEを更新していないとダメ、ということですかね? この必要性がわからなかったのですが。
|
方針転換のためクローズします。 各リポジトリに個別の また調査の結果、 置き換え先: #98 |
アセット更新ラッパーを追加(共有ワークフロー方式・#97 を置き換え)
Background
Assets reach WordPress.org only through
deploy.yml, which runs onrelease: published. Anything committed to.wordpress-org/therefore stays invisible until the next version ships.Here, 3 file(s) in
.wordpress-org/have never been published.Across the org this affects 12 of 15 plugins: 21 files never published, 12 live under the same name with different content. Most of it dates from a coordinated asset refresh on 2026-07-09/10 that no release has carried out yet.
What this adds
A workflow that syncs
.wordpress-org/and the generatedreadme.txtusing10up/action-wordpress-plugin-asset-update, independent of releases. It uses the same secrets asdeploy.yml.pushtomastertouching.wordpress-org/**orREADME.md— keeps things current from now onworkflow_dispatch— needed to publish what is already committed, since a path filter only reacts to future pushesNo plugin code is deployed by this workflow, so it does not release a version.
Notes for review
environment: productionis deliberately omitted.deploy.ymldeclares it, and that environment carries a protection rule. Requiring an approval for every asset sync would defeat the purpose. This assumesWP_ORG_USERNAME_TAROSKY/WP_ORG_PASSWORD_TAROSKYare organization or repository secrets rather than environment-scoped ones — if the first run fails on empty credentials, that assumption was wrong and the line needs adding back.readme.txtis synced too, generated fromREADME.mdthe same waydeploy.ymldoes it.Tested up tois written as e.g.7.0rather than7.0.2; WordPress.org resolves that to the latest patch of the branch, so this does not lower any published value.