open-athena/Extract Called Workflow Ref

Extracts the ref (branch/tag/SHA) used to call a reusable workflow by parsing the caller workflow file

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Aug 12, 2025
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: open-athena/extract-called-ref@08d8ebb47d65a7934aa99f94c5a2932e5b3d7507 # no releases — HEAD as of 2026-07-11

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

namedescriptionrequireddefault
target_repositoryThe repository containing the called workflow (e.g., owner/repo)yes
ref_overrideExplicit ref to use (bypasses extraction when provided)no""
default_refDefault ref to use if extraction fails (if not provided, fetches target repository default branch)no""
fail_on_multiple_refsWhether to fail if multiple different refs are foundnotrue
namedescription
refThe extracted ref (branch/tag/SHA) or default if extraction failed
extraction_methodHow the ref was determined (extracted, default, or error)