@@ -21,28 +21,12 @@ jobs:
2121 run : |
2222 version="$(tr -d '[:space:]' < VERSION)"
2323 echo "version=$version" >> "$GITHUB_OUTPUT"
24-
2524 if [[ "${GITHUB_EVENT_NAME}" == "push" ]]; then
26- tag="${GITHUB_REF_NAME}"
27- case "$tag" in
28- [0-9]*.[0-9]*.[0-9]*) ;;
29- *)
30- echo "expected a plain semantic version tag, got: $tag" >&2
31- exit 1
32- ;;
33- esac
34- [[ "$tag" == "$version" ]] || {
35- echo "VERSION contains $version, expected $tag" >&2
36- exit 1
37- }
38- git fetch origin main --no-tags
39- git merge-base --is-ancestor "${GITHUB_SHA}" origin/main || {
40- echo "release tags must point to commits reachable from origin/main" >&2
41- exit 1
42- }
25+ bash ./scripts/validate-release-tag.sh "${GITHUB_REF_NAME}"
26+ else
27+ bash ./scripts/validate-release-tag.sh
4328 fi
44-
45- ./scripts/release-check.sh "$version"
29+ bash ./scripts/release-check.sh "$version"
4630
4731 publish-homebrew :
4832 runs-on : ubuntu-24.04
7559 if : steps.gate.outputs.publish == 'true'
7660 env :
7761 TAP_REPO_DIR : ${{ github.workspace }}/.stage/homebrew-icey
78- run : ./scripts/publish-homebrew.sh
62+ run : bash ./scripts/publish-homebrew.sh
7963
8064 - name : Commit formula update
8165 if : steps.gate.outputs.publish == 'true'
@@ -128,7 +112,7 @@ jobs:
128112 if : steps.gate.outputs.publish == 'true'
129113 env :
130114 AUR_REPO_DIR : ${{ github.workspace }}/.stage/aur-icey
131- run : ./scripts/publish-aur.sh
115+ run : bash ./scripts/publish-aur.sh
132116
133117 - name : Commit AUR update
134118 if : steps.gate.outputs.publish == 'true'
0 commit comments