Deploys on the `release` event fails due to an upstream GitHub Actions issue.
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- github-actions, shell, wordpress
- Lĩnh vực
- ci-cd, documentation, release
Hướng nghiên cứu
Bắt đầu với workflow của sự kiện release và logic deploy đọc GITHUB_REF, sau đó kiểm tra ví dụ được ghi trong tài liệu deploy-on-publishing-a-new-release-and-attach-a-zip-file-to-the-release.yml. Xác minh rằng release tag có sẵn thông qua sự kiện release, cập nhật cấu hình bị ảnh hưởng và tái hiện một release đã publish để xác nhận plugin được deploy và ví dụ khớp với thiết lập đang hoạt động.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Shell
- Star
- 665
- Fork
- 115
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của 10up/action-wordpress-plugin-deploy
-
help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
10up/action-wordpress-plugin-deploy#172 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
10up/action-wordpress-plugin-deploy#146 · 10 bình luận ·
-
WP CLI `.distignore` syntax is changingCó thể đã có người làm @kmgalanakis đã nhận 302 ngày trước. Đang mởhelp wanted needs:engineering type:enhancement
10up/action-wordpress-plugin-deploy#139 · 2 bình luận · 2 reaction · 2 người được giao ·
Tất cả issue của 10up/action-wordpress-plugin-deploy
Issue tương tự
-
Broken app label: nvivo15/nvivoĐang mởapplication-issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Installomator/Installomator#3657 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Own-agent checks: reject the Actions bot id in admit.mjs and test the source label in pr-verifyĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
melodic-software/claude-code-plugins#17374 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
out-of-date
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
CachyOS/CachyOS-PKGBUILDS#2154 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
eip-work/kuboard-press#723 ·