Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69f738465e | ||
|
|
2712c5b8c1 | ||
|
|
5a48993d26 |
@@ -13,7 +13,7 @@ jobs:
|
|||||||
# The temporary release runner is isolated from stale queued jobs that use
|
# 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 old ubuntu-24.04 label. Restore ubuntu-latest after this release when
|
||||||
# the repository's normal Linux runner is online again.
|
# the repository's normal Linux runner is online again.
|
||||||
runs-on: kaidi-release:host
|
runs-on: kaidi-release
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -24,11 +24,17 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
GITEA_REF_NAME=${GITHUB_REF_NAME:-}
|
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" ]; 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}
|
VERSION=${GITEA_REF_NAME#v}
|
||||||
test "$GITEA_REF_NAME" = "v$VERSION"
|
test "$GITEA_REF_NAME" = "v$VERSION"
|
||||||
./scripts/check-semver.sh "$VERSION"
|
./scripts/check-semver.sh "$VERSION"
|
||||||
GITEA_SHA=$(git rev-parse "refs/tags/$GITEA_REF_NAME^{commit}")
|
GITEA_SHA=$(git rev-parse HEAD)
|
||||||
test -z "$(git status --porcelain --untracked-files=all)"
|
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 'version=%s\n' "$VERSION"
|
||||||
printf 'ref=%s\n' "$GITEA_REF_NAME"
|
printf 'ref=%s\n' "$GITEA_REF_NAME"
|
||||||
|
|||||||
Reference in New Issue
Block a user