Compare commits

..
Author SHA1 Message Date
Qiufeng 69f738465e ci: tolerate checkout line-ending normalization
Release / release (push) Failing after 19m3s
2026-08-18 19:40:28 +08:00
Qiufeng 2712c5b8c1 ci: resolve release tag from checked out refs
Release / release (push) Failing after 7s
2026-08-18 19:33:06 +08:00
Qiufeng 5a48993d26 ci: use registered release runner label
Release / release (push) Failing after 10s
2026-08-18 19:30:25 +08:00
+9 -3
View File
@@ -13,7 +13,7 @@ jobs:
# The temporary release runner is isolated from stale queued jobs that use
# the old ubuntu-24.04 label. Restore ubuntu-latest after this release when
# the repository's normal Linux runner is online again.
runs-on: kaidi-release:host
runs-on: kaidi-release
steps:
- uses: actions/checkout@v4
with:
@@ -24,11 +24,17 @@ jobs:
run: |
GITEA_REF_NAME=${GITHUB_REF_NAME:-}
if [ -z "$GITEA_REF_NAME" ]; then GITEA_REF_NAME=${GITHUB_REF#refs/tags/}; fi
if [ -z "$GITEA_REF_NAME" ] || [ "$GITEA_REF_NAME" = "$GITHUB_REF" ]; then
GITEA_REF_NAME=$(git tag --points-at HEAD | awk '/^v[0-9A-Za-z][0-9A-Za-z._+-]*$/{print; exit}')
fi
VERSION=${GITEA_REF_NAME#v}
test "$GITEA_REF_NAME" = "v$VERSION"
./scripts/check-semver.sh "$VERSION"
GITEA_SHA=$(git rev-parse "refs/tags/$GITEA_REF_NAME^{commit}")
test -z "$(git status --porcelain --untracked-files=all)"
GITEA_SHA=$(git rev-parse HEAD)
test "$(git rev-parse "refs/tags/$GITEA_REF_NAME^{commit}")" = "$GITEA_SHA"
test -z "$(git ls-files --others --exclude-standard)"
git diff --quiet --ignore-space-at-eol --ignore-cr-at-eol \
|| { printf 'Release checkout has non-whitespace tracked changes:\n' >&2; git diff --stat >&2; exit 1; }
{
printf 'version=%s\n' "$VERSION"
printf 'ref=%s\n' "$GITEA_REF_NAME"