Skip to content

Commit

Permalink
Bump download artifact action to v4 (#67)
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sanchez-Mateos <[email protected]>
  • Loading branch information
rsanchez15 authored Mar 4, 2024
1 parent 37788c1 commit 7c930c6
Showing 1 changed file with 48 additions and 5 deletions.
53 changes: 48 additions & 5 deletions external/download-artifact/action.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,65 @@
name: 'download-artifact'
description: 'https://github.com/actions/upload-artifact/blob/main/action.yml'
name: 'Download a Build Artifact'

description: |
'Download a build artifact that was previously uploaded in the workflow by the upload-artifact action.'
'See https://github.com/actions/download-artifact/blob/main/action.yml for more details.'
inputs:

name:
description: 'Artifact name'
description: 'Name of the artifact to download. If unspecified, all artifacts for the run are downloaded.'
required: false

path:
description: 'Destination path'
description: 'Destination path. Supports basic tilde expansion. Defaults to $GITHUB_WORKSPACE'
required: false

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'

github-token:
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 "/".
If github-token is specified, this is the repository that artifacts will be downloaded from.'
required: false
default: ${{ github.repository }}

run-id:
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'
value: ${{ steps.download_artifact.outputs.download-path }}

runs:
using: composite
steps:

- name: Download artifacts
uses: actions/download-artifact@v3
id: download_artifact
uses: actions/download-artifact@v4
with:
name: ${{ inputs.name }}
path: ${{ inputs.path }}
pattern: ${{ inputs.pattern }}
merge-multiple: ${{ inputs.merge-multiple }}
github-token: ${{ inputs.github-token }}
repository: ${{ inputs.repository }}
run-id: ${{ inputs.run-id }}

0 comments on commit 7c930c6

Please sign in to comment.