2019-11-09 01:00:32 +08:00
|
|
|
name: 'Download a Build Artifact'
|
|
|
|
description: 'Download a build artifact that was previously uploaded in the workflow by the upload-artifact action'
|
2019-06-25 04:40:04 +08:00
|
|
|
author: 'GitHub'
|
2023-08-24 23:57:52 +08:00
|
|
|
inputs:
|
2019-06-25 04:40:04 +08:00
|
|
|
name:
|
2023-12-16 06:18:41 +08:00
|
|
|
description: 'Name of the artifact to download. If unspecified, all artifacts for the run are downloaded.'
|
2020-04-28 21:45:21 +08:00
|
|
|
required: false
|
2019-06-25 04:40:04 +08:00
|
|
|
path:
|
2023-12-13 08:21:23 +08:00
|
|
|
description: 'Destination path. Supports basic tilde expansion. Defaults to $GITHUB_WORKSPACE'
|
2020-04-28 21:45:21 +08:00
|
|
|
required: false
|
2023-12-16 06:18:41 +08:00
|
|
|
pattern:
|
|
|
|
description: 'A glob pattern matching the artifacts that should be downloaded. Ignored if name is specified.'
|
|
|
|
required: false
|
|
|
|
merge-multiple:
|
|
|
|
description: 'When multiple artifacts are matched, this changes the behavior of the destination directories.
|
|
|
|
If true, the downloaded artifacts will be in the same directory specified by path.
|
|
|
|
If false, the downloaded artifacts will be extracted into individual named directories within the specified path.'
|
|
|
|
required: false
|
|
|
|
default: 'false'
|
2023-08-24 23:57:52 +08:00
|
|
|
github-token:
|
2023-12-02 02:20:09 +08:00
|
|
|
description: 'The GitHub token used to authenticate with the GitHub API.
|
|
|
|
This is required when downloading artifacts from a different repository or from a different workflow run.
|
|
|
|
If this is not specified, the action will attempt to download artifacts from the current repository and the current workflow run.'
|
2023-08-24 23:57:52 +08:00
|
|
|
required: false
|
|
|
|
repository:
|
|
|
|
description: 'The repository owner and the repository name joined together by "/".
|
2023-12-02 02:20:09 +08:00
|
|
|
If github-token is specified, this is the repository that artifacts will be downloaded from.'
|
2023-08-24 23:57:52 +08:00
|
|
|
required: false
|
|
|
|
default: ${{ github.repository }}
|
|
|
|
run-id:
|
2023-12-02 02:20:09 +08:00
|
|
|
description: 'The id of the workflow run where the desired download artifact was uploaded from.
|
|
|
|
If github-token is specified, this is the run that artifacts will be downloaded from.'
|
2023-08-24 23:57:52 +08:00
|
|
|
required: false
|
|
|
|
default: ${{ github.run_id }}
|
2023-01-06 06:35:52 +08:00
|
|
|
outputs:
|
|
|
|
download-path:
|
|
|
|
description: 'Path of artifact download'
|
2019-06-25 04:40:04 +08:00
|
|
|
runs:
|
2024-01-04 08:11:31 +08:00
|
|
|
using: 'node18'
|
2022-02-08 04:18:27 +08:00
|
|
|
main: 'dist/index.js'
|