Replace this workaround with actions/download-artifact once a release
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 57/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- github-actions, javascript
Hướng nghiên cứu
Start by checking the release history for actions/download-artifact and whether a release includes the delayed artifact visibility fix described in issue 505 and pull request 506. Then inspect actions/download-artifact/action.yml and replace the workaround when that release is available; done means the action uses the fixed release and its existing inputs and outputs still work.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
includes its fix for delayed artifact visibility:
https://github\.com/actions/download\-artifact/issues/505
https://github\.com/actions/download\-artifact/pull/506
---
# Download every requested artifact, retrying delayed visibility at consumption time.
#
# ```yaml
# - uses: hoverkraft-tech/ci-github-common/actions/download-artifact@<commit-sha>
# with:
# artifact-ids: ${{ steps.upload.outputs.artifact-id }}
# path: downloaded
# ```
name: Download artifacts
description: |
Download every requested artifact ID with the official artifact SDK.
Retry missing metadata and unavailable downloads with bounded backoff, up to
61 seconds of waiting. Completed downloads are not repeated. Digest mismatches,
invalid inputs, permission errors and other service failures remain failures.
No runtime installation is required. Only GitHub.com is supported.
author: hoverkraft
branding:
icon: download
color: blue
inputs:
artifact-ids:
description: Comma-separated positive artifact IDs. Every ID must download successfully.
required: true
path:
description: Destination directory. Multiple artifacts use named subdirectories unless merge-multiple is true.
default: ${{ github.workspace }}
merge-multiple:
description: Download multiple artifacts into the same destination directory.
default: "false"
skip-decompress:
description: Keep the uploaded file as-is, for example a package tarball uploaded without archiving.
default: "false"
github-token:
description: Optional token with actions:read permission for REST downloads. Empty uses the current run's runtime token.
default: ""
repository:
description: Repository containing the artifacts, used with github-token.
default: ${{ github.repository }}
run-id:
description: Workflow run containing the artifacts, used with github-token.
default: ${{ github.run_id }}
outputs:
download-path:
description: Absolute destination path, set only after every artifact downloads successfully.
value: ${{ steps.download.outputs.download-path }}
runs:
# TODO: Replace this workaround with actions/download-artifact once a release
# includes its fix for delayed artifact visibility:
# https://github.com/actions/download-artifact/issues/505
# https://github.com/actions/download-artifact/pull/506
using: composite
steps:
- id: download
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
env:
ACTION_PATH: ${{ github.action_path }}
ARTIFACT_IDS: ${{ inputs.artifact-ids }}
DOWNLOAD_PATH: ${{ inputs.path }}
MERGE_MULTIPLE: ${{ inputs.merge-multiple }}
SKIP_DECOMPRESS: ${{ inputs.skip-decompress }}
ARTIFACT_TOKEN: ${{ inputs.github-token }}
ARTIFACT_REPOSITORY: ${{ inputs.repository }}
ARTIFACT_RUN_ID: ${{ inputs.run-id }}
with:
script: |
const path = require('node:path');
const { pathToFileURL } = require('node:url');
const { run } = await import(pathToFileURL(path.join(process.env.ACTION_PATH, 'dist/index.js')));
await run({
core, artifactIds: process.env.ARTIFACT_IDS, destination: process.env.DOWNLOAD_PATH,
mergeMultiple: process.env.MERGE_MULTIPLE, skipDecompress: process.env.SKIP_DECOMPRESS,
githubToken: process.env.ARTIFACT_TOKEN, repository: process.env.ARTIFACT_REPOSITORY,
runId: process.env.ARTIFACT_RUN_ID
});
- Ngôn ngữ chính
- JavaScript
- Star
- 5
- Fork
- 1
- Merge trung bình
- 5 giờ 25 phút
- Pull request đã merge (30 ngày)
- 60
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc 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 hoverkraft-tech/ci-github-common
-
bug need-fix
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
hoverkraft-tech/ci-github-common#694 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug need-fix
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
hoverkraft-tech/ci-github-common#691 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug need-fix
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
hoverkraft-tech/ci-github-common#690 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug need-fix
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
hoverkraft-tech/ci-github-common#688 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug need-fix
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
hoverkraft-tech/ci-github-common#695 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của hoverkraft-tech/ci-github-common
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
TheOdinProject/curriculum#31596 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
mailcow/mailcow-dockerized#7725 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 94/100
solana-foundation/solana-com#2579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
vercel-labs/agent-skills#385 ·
-
documentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
danielcuesta007/skeptic#73 ·
Maintainer thường phản hồi trong vòng 1 ngày