develop #26
@@ -62,7 +62,9 @@ jobs:
|
||||
echo "Created local tag: $VERSION"
|
||||
|
||||
# 推送到远端(不会触发本 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 "tag=$VERSION" >> "$GITHUB_OUTPUT"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user