Trigger a failure if not all files are added to SVN

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
github-actions, shell, wordpress
Lĩnh vực
devops, release

Hướng nghiên cứu

Bắt đầu với deploy.sh quanh dòng 125 và build log bị lỗi được liên kết, sau đó xem xét cách các tệp được thêm vào SVN và svn:ignore ảnh hưởng đến bước đó như thế nào. Thay đổi được hoàn tất khi action phát hiện các tệp đang tồn tại nhưng chưa được thêm vào và thất bại trước khi triển khai, với coverage cho kịch bản vendor-directory.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

help wanted needs:engineering type:enhancement

Is your enhancement related to a problem? Please describe.

There were some files missing from the most recent release of one of my plugins on wordpress.org, despite the .gitignore and .gitattributes configuration being correct. Everything with the build is fine right up to the point where the plugin gets deployed to the plugin directory.

The problem appears to be caused by an existing svn:ignore prop on the plugin directory, which I historically used to prevent files from being deployed before I switched to using this GitHub action. In the most recent release of the plugin I added files which matched the svn:ignore prop, hence when this action added the files they were actually ignored.

Here's the related portion of the script: https://github.com/10up/action-wordpress-plugin-deploy/blob/de0553e7b3e232ad24cf49c9548734568c5956fe/deploy.sh#L125

Describe the solution you'd like

It would be great if this action trigger a failure when some files that are present have not been added to svn, to prevent a broken release from being deployed to wordpress.org. I'm not yet sure how this could work.

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.