List Artifacts
Version updated for yakubique/list-artifacts to version v1.1.
- This action is used across all versions by ? repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
Full Changelog: https://github.com/yakubique/list-artifacts/compare/v1...v1.1
List artifacts
List a build artifacts that can be used by subsequent workflow steps
Usage
- name: List artifacts
id: list
uses: yakubique/list-artifacts@v1.1
with:
name: test-*
# Output example: $> echo "${{ steps.list.outputs.result }}"
# [
# {
# "name": "test-2",
# "id": 1278446917,
# "size": 140,
# "createdAt": "2024-02-27T11:15:32.000Z"
# },
# {
# "name": "test-1",
# "id": 1278446907,
# "size": 137,
# "createdAt": "2024-02-27T11:15:31.000Z"
# }
# ]
Inputs
INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
---|---|---|---|---|
name | string | true | The name of the artifact to delete; multiple names can be supplied on new lines. | |
repository | string | false | "${{ github.repository }}" | The repository owner and the repository name joined together by “/”. If github-token is specified, this is the repository that artifacts will be listed from. |
run-id | string | false | "${{ github.run_id }}" | 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 listed from. |
token | string | true | "${{ github.token }}" | GitHub token with read access to actions for the repository. |
useGlob | string | false | "true" | Indicates whether the name, or names, should be treated as glob patterns. |
Outputs
OUTPUT | TYPE | DESCRIPTION |
---|---|---|
result | string | Result list in JSON format |