Replace this workaround with actions/download-artifact once a release
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 57/100
- Issue 類型
- 重構
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- github-actions, javascript
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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
});
- 主要語言
- JavaScript
- 星號
- 5
- 分支
- 1
- 平均合併
- 5 小時 25 分鐘
- 30 天內合併 PR
- 60
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
hoverkraft-tech/ci-github-common 的其他 Issue
-
bug need-fix
難度 2/5 1-3 小時 新手友好度 73/100
hoverkraft-tech/ci-github-common#694 ·
維護者通常 1 天內回覆
-
bug need-fix
難度 1/5 1 小時以內 新手友好度 76/100
hoverkraft-tech/ci-github-common#691 ·
維護者通常 1 天內回覆
-
bug need-fix
難度 2/5 1-3 小時 新手友好度 65/100
hoverkraft-tech/ci-github-common#690 ·
維護者通常 1 天內回覆
-
bug need-fix
難度 1/5 1 小時以內 新手友好度 83/100
hoverkraft-tech/ci-github-common#688 ·
維護者通常 1 天內回覆
-
bug need-fix
難度 3/5 1-2 天 新手友好度 48/100
hoverkraft-tech/ci-github-common#695 ·
維護者通常 1 天內回覆
查看 hoverkraft-tech/ci-github-common 的全部 Issue
相似的 Issue
-
難度 1/5 1 小時以內 新手友好度 83/100
TheOdinProject/curriculum#31596 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 72/100
mailcow/mailcow-dockerized#7725 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 94/100
solana-foundation/solana-com#2579 ·
維護者通常 1 天內回覆
-
難度 1/5 1-3 小時 新手友好度 85/100
vercel-labs/agent-skills#385 ·
-
documentation good first issue
難度 1/5 1-3 小時 新手友好度 88/100
danielcuesta007/skeptic#73 ·
維護者通常 1 天內回覆