Deploys on the `release` event fails due to an upstream GitHub Actions issue.
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 65/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- github-actions, shell, wordpress
- 領域
- ci-cd, documentation, release
調査の方向性
release イベントの workflow と GITHUB_REF を読み取る deploy ロジックから始め、続いてドキュメントに記載された deploy-on-publishing-a-new-release-and-attach-a-zip-file-to-the-release.yml の例を確認してください。release イベントを通じて release tag が利用可能であることを検証し、影響を受ける設定を更新して、公開済みの release を再現し、plugin が deploy されることと、例が動作する設定と一致することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The GITHUB_REF environment variable is undefined on the release event causing deploys to fail for workflows using the configuration to deploy on the event:
on:
release:
types: [published]
This is caused by an upstream bug in GitHub Actions resurfacing, see https://github.com/actions/runner/issues/2788#issuecomment-4769609787
A common workaround for repositories experiencing this issue is to use github.event.release.tag_name for the tag name using the release event. See https://github.com/dash14/buildcage/pull/106 for an example.
This is also affecting the zip uploading action recommended in the deploy-on-publishing-a-new-release-and-attach-a-zip-file-to-the-release.yml) example configuration. As part of resolving this issue, we will need to update the documented example.
Steps to Reproduce
- Configure a plugin to deploy on the
releaseevent - Draft a new plugin release
- Publish the release
- Observe the action is failing to deploy as
GITHUB_REFis undefined.
The logs will show something along the lines of:ℹ︎ SLUG is plugin-slug ℹ︎ VERSION is ℹ︎ ASSETS_DIR is .wordpress-org
See the action run for Simple Podcasting version 2.0.0.
Expected behavior
The plugin deploys
Additional context
- 主要言語
- Shell
- スター
- 665
- フォーク
- 115
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
10up/action-wordpress-plugin-deploy のほかの issue
-
help wanted
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
10up/action-wordpress-plugin-deploy#172 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
10up/action-wordpress-plugin-deploy#146 · コメント 10 件 ·
-
WP CLI `.distignore` syntax is changing対応中かも @kmgalanakis が 302 日前に担当しました。 オープンhelp wanted needs:engineering type:enhancement
10up/action-wordpress-plugin-deploy#139 · コメント 2 件 · リアクション 2 件 · 担当者 2 名 ·
10up/action-wordpress-plugin-deploy の issue をすべて見る
似ている issue
-
application-issue
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
Installomator/Installomator#3657 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
Own-agent checks: reject the Actions bot id in admit.mjs and test the source label in pr-verifyオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
melodic-software/claude-code-plugins#17374 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
out-of-date
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
CachyOS/CachyOS-PKGBUILDS#2154 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
eip-work/kuboard-press#723 ·