fix(provisioning): fall back to main workflow SHA

This commit is contained in:
Adam Moussa 2026-08-03 17:58:19 -04:00
parent 996579697e
commit 50cff6465c
No known key found for this signature in database

View file

@ -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)