chore: 3.26.35 发布记录(release page/releases.json)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 39s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 39s
This commit is contained in:
1 parent
e5d0b5171b
commit
23df59188e
6 files changed
+43
-18
No files matched your search
@@ -116,7 +116,7 @@ ssh -i "$SSH_KEY" -o BatchMode=yes "$NAS_HOST" "chmod -R a+rX $NAS_DIR"
|
||||
if git rev-parse --git-dir >/dev/null 2>&1; then
|
||||
HEAD_V=$(git show HEAD:package.json 2>/dev/null | node -e 'let t="";process.stdin.on("data",d=>t+=d).on("end",()=>{try{console.log(JSON.parse(t).version)}catch(e){console.log("")}})') || true
|
||||
if [ "$HEAD_V" != "$V" ]; then
|
||||
echo "WARN 版本号尚未提交(HEAD=$HEAD_V 本地=$V):跳过锚点自动对齐,请先提交再发布"
|
||||
echo "WARN 版本号尚未提交(HEAD=${HEAD_V} 本地=${V}):跳过锚点自动对齐,请先提交再发布"
|
||||
else
|
||||
BUMP_SHA=$(git log -1 --format=%h -- package.json || true)
|
||||
if [ -n "$BUMP_SHA" ]; then
|
||||
@@ -124,8 +124,8 @@ if git rev-parse --git-dir >/dev/null 2>&1; then
|
||||
node scripts/sync-facts.js --write >/dev/null 2>&1 || true
|
||||
if ! git diff --quiet -- docs/standards/architecture-current-state.md CONTRIBUTING.md 2>/dev/null; then
|
||||
git add docs/standards/architecture-current-state.md CONTRIBUTING.md 2>/dev/null || true
|
||||
GIT_AUTHOR_NAME=qiqi GIT_AUTHOR_EMAIL=qiqi@local GIT_COMMITTER_NAME=qiqi GIT_COMMITTER_EMAIL=qiqi@local git commit -q -m "docs: 锚点对齐 v$V+$BUMP_SHA(publish 自动)" || true
|
||||
echo "== 文档锚点已自动对齐并本地提交:$BUMP_SHA(随版本一起 push)"
|
||||
GIT_AUTHOR_NAME=qiqi GIT_AUTHOR_EMAIL=qiqi@local GIT_COMMITTER_NAME=qiqi GIT_COMMITTER_EMAIL=qiqi@local git commit -q -m "docs: 锚点对齐 v${V}+${BUMP_SHA}(publish 自动)" || true
|
||||
echo "== 文档锚点已自动对齐并本地提交:${BUMP_SHA}(随版本一起 push)"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user