Skip to content

Commit 2cdc70e

Browse files
authored
Add optional run-id parameter so we can fetch tar artifacts built by previous workflow runs (#2)
* Add optional `run-id` parameter so we can fetch tar artifacts built by previous workflow runs * Add github-token argument needed by actions/download-artifact@v4 when run-id argument is used.
1 parent 59992d9 commit 2cdc70e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ inputs:
1010
path:
1111
description: 'Destination path. Defaults to $GITHUB_WORKSPACE.'
1212
default: ${{ github.workspace }}
13+
github-token:
14+
description: 'GitHub token used to download artifacts.'
15+
default: ${{ github.token }}
16+
run-id:
17+
description: 'The id of the workflow run where the desired download artifact was uploaded from. If unspecified, the current run is used.'
18+
default: ${{ github.run_id }}
1319

1420
outputs:
1521
download-path:
@@ -31,6 +37,8 @@ runs:
3137
with:
3238
name: ${{ inputs.name }}
3339
path: ${{ steps.create-temp-dir.outputs.temp-dir }}
40+
github-token: ${{ inputs.github-token }}
41+
run-id: ${{ inputs.run-id }}
3442

3543
- name: Extract Tar Archive
3644
shell: pwsh

0 commit comments

Comments
 (0)