1
0
Fork 0
mirror of https://code.forgejo.org/actions/download-artifact.git synced 2024-12-23 12:36:01 +01:00
download-artifact/action.yml

32 lines
1.3 KiB
YAML
Raw Normal View History

2019-11-08 18:00:32 +01: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-24 22:40:04 +02:00
author: 'GitHub'
inputs:
2019-06-24 22:40:04 +02:00
name:
description: 'Artifact name'
required: false
2019-06-24 22:40:04 +02:00
path:
description: 'Destination path'
required: false
github-token:
2023-12-01 19:20:09 +01: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.'
required: false
repository:
description: 'The repository owner and the repository name joined together by "/".
2023-12-01 19:20:09 +01:00
If github-token is specified, this is the repository that artifacts will be downloaded from.'
required: false
default: ${{ github.repository }}
run-id:
2023-12-01 19:20:09 +01: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.'
required: false
default: ${{ github.run_id }}
outputs:
download-path:
description: 'Path of artifact download'
2019-06-24 22:40:04 +02:00
runs:
using: 'node20'
main: 'dist/index.js'