mirror of
https://github.com/Sea-Haven-Industries/engineering-handbook.git
synced 2026-10-05 08:22:10 +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.
|
# and CI/CD workflow stubs.
|
||||||
#
|
#
|
||||||
# Workflow callers are generated from the latest released version of the
|
# 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
|
set -euo pipefail
|
||||||
|
|
||||||
|
|
@ -49,8 +50,7 @@ while IFS= read -r tag; do
|
||||||
fi
|
fi
|
||||||
done <<< "$WORKFLOW_TAGS"
|
done <<< "$WORKFLOW_TAGS"
|
||||||
if [[ -z "$WORKFLOW_VERSION" ]]; then
|
if [[ -z "$WORKFLOW_VERSION" ]]; then
|
||||||
echo "Error: no released Sea-Haven-Industries/.github vX.Y.Z tag found."
|
WORKFLOW_VERSION="main"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
WORKFLOW_SHA=$(gh api "repos/${ORG}/.github/commits/${WORKFLOW_VERSION}" --jq .sha)
|
WORKFLOW_SHA=$(gh api "repos/${ORG}/.github/commits/${WORKFLOW_VERSION}" --jq .sha)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue