Merge pull request 'fix: 修正CD错误' (#25) from feature/route into develop
CI / host (push) Successful in 5s
CI / cortex-m (push) Successful in 10s
CI / host (pull_request) Successful in 7s
CI / cortex-m (pull_request) Successful in 9s

Reviewed-on: #25
This commit was merged in pull request #25.
This commit is contained in:
2026-07-26 23:45:37 +08:00
+3 -1
View File
@@ -62,7 +62,9 @@ jobs:
echo "Created local tag: $VERSION" echo "Created local tag: $VERSION"
# 推送到远端(不会触发本 workflow — 仅匹配 branches: [main]) # 推送到远端(不会触发本 workflow — 仅匹配 branches: [main])
git push "https://${TOKEN}@${{ gitea.server_url }}/${{ gitea.repository }}" "$VERSION" ORIGIN=$(git config --get remote.origin.url)
PUSH_URL="https://oauth2:${TOKEN}@${ORIGIN#https://}"
git push "$PUSH_URL" "$VERSION"
echo "Pushed tag: $VERSION" echo "Pushed tag: $VERSION"
echo "tag=$VERSION" >> "$GITHUB_OUTPUT" echo "tag=$VERSION" >> "$GITHUB_OUTPUT"