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

Đang mở
#175 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ả

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của 10up/action-wordpress-plugin-deploy

Tất cả issue của 10up/action-wordpress-plugin-deploy

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.