Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2712c5b8c1 | ||
|
|
5a48993d26 |
@@ -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,10 +24,14 @@ 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}")
|
||||
GITEA_SHA=$(git rev-parse HEAD)
|
||||
test "$(git rev-parse "refs/tags/$GITEA_REF_NAME^{commit}")" = "$GITEA_SHA"
|
||||
test -z "$(git status --porcelain --untracked-files=all)"
|
||||
{
|
||||
printf 'version=%s\n' "$VERSION"
|
||||
|
||||
Reference in New Issue
Block a user