mirror of
https://github.com/Sea-Haven-Industries/engineering-handbook.git
synced 2026-09-30 22:03:13 +00:00
fix(provisioning): fall back to main workflow SHA
This commit is contained in:
parent
996579697e
commit
50cff6465c
1 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,8 @@
|
|||
# and CI/CD workflow stubs.
|
||||
#
|
||||
# Workflow callers are generated from the latest released version of the
|
||||
# Sea-Haven-Industries/.github repository and pinned to its full commit SHA.
|
||||
# Sea-Haven-Industries/.github repository, or main when no release exists,
|
||||
# and pinned to its full commit SHA.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
|
|
@ -49,8 +50,7 @@ while IFS= read -r tag; do
|
|||
fi
|
||||
done <<< "$WORKFLOW_TAGS"
|
||||
if [[ -z "$WORKFLOW_VERSION" ]]; then
|
||||
echo "Error: no released Sea-Haven-Industries/.github vX.Y.Z tag found."
|
||||
exit 1
|
||||
WORKFLOW_VERSION="main"
|
||||
fi
|
||||
|
||||
WORKFLOW_SHA=$(gh api "repos/${ORG}/.github/commits/${WORKFLOW_VERSION}" --jq .sha)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue