Skip to content

Commit

Permalink
Merge pull request #242 from actions/v4-beta-internal-client
Browse files Browse the repository at this point in the history
Use internal client when `github-token` is not specified
  • Loading branch information
robherley authored Dec 4, 2023
2 parents 98c6f16 + 0742efc commit 8b83831
Show file tree
Hide file tree
Showing 3 changed files with 830 additions and 133 deletions.
10 changes: 6 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,18 @@ inputs:
description: 'Destination path'
required: false
github-token:
description: The GitHub token used to download the artifact
default: ${{ 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 "/".
This specifies the repository that artifacts will be downloaded from. If downloading artifacts from external workflow runs or repositories then the above download-token must be permissions to this repository.'
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 downloading artifacts from anything other than the current workflow run then this needs to be overwritten.'
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:
Expand Down
Loading

0 comments on commit 8b83831

Please sign in to comment.