Deploys on the `release` event fails due to an upstream GitHub Actions issue.

オープン
#175 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
github-actions, shell, wordpress

調査の方向性

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 の本文から書いたものです。

説明

help wanted

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

  1. Configure a plugin to deploy on the release event
  2. Draft a new plugin release
  3. Publish the release
  4. Observe the action is failing to deploy as GITHUB_REF is 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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

10up/action-wordpress-plugin-deploy のほかの issue

10up/action-wordpress-plugin-deploy の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。