diff --git a/scripts/provision-repo.sh b/scripts/provision-repo.sh index b9712c6..a1ce338 100755 --- a/scripts/provision-repo.sh +++ b/scripts/provision-repo.sh @@ -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)