colpal/actions-find-artifact-by-ref

Find a workflow artifact for a particular ref

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 9, 2026
License
GPL 3.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: colpal/actions-find-artifact-by-ref@d16e5d29aecb2fb7582a2f291c1c255b1a189898 # v2.3.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
refOnly search workflows on this git refyes
artifact_nameOnly match artifacts with this nameyes
downloadIf set, will download the matched artifactnofalse
on_duplicateDefine what to do if multiple matching artifacts are found. The possible options are: - error: Fail immediately - newest: Use the newest matching artifact - oldest: Use the oldest matching artifact noerror
github_tokenThe GitHub token used to create an authenticated clientno${{ github.token }}
run_nameThe name of the run that generated the artifact. This can help narrow the number of workflow runs that are considered, reducing the chance of artifact name collisions and reducing the number of necessary API calls. If not provided, all workflow runs for the provided ref will be considered. The run name will generally match the job name, but can include additional text if the job run was part of a `matrix` or a reusable workflow no""
namedescription
errorAn error code if the action fails (mostly for testing)
artifact_idThe artifact ID of the found artifact