forked from Eeveid/lightOps
🔧 chore(workflow): 移除 Release Token 预检日志
- 清理发布步骤中的临时调试输出 - 保持使用 RELEASE_TOKEN 进行 Release 发布 - 为重新验证更新后的仓库密钥提供干净日志
This commit is contained in:
@@ -135,15 +135,6 @@ jobs:
|
|||||||
GITEA_URL="${SERVER_URL%/}"
|
GITEA_URL="${SERVER_URL%/}"
|
||||||
GITEA_OWNER="${REPOSITORY%%/*}"
|
GITEA_OWNER="${REPOSITORY%%/*}"
|
||||||
GITEA_REPO="${REPOSITORY#*/}"
|
GITEA_REPO="${REPOSITORY#*/}"
|
||||||
echo "RELEASE_TOKEN length: $(printf '%s' "${GITEA_TOKEN:-}" | wc -c)"
|
|
||||||
curl -sS -o /tmp/lightops-user.json -w 'user status: %{http_code}\n' \
|
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
|
||||||
"${GITEA_URL}/api/v1/user"
|
|
||||||
cat /tmp/lightops-user.json
|
|
||||||
curl -sS -o /tmp/lightops-release-list.json -w 'release list status: %{http_code}\n' \
|
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
|
||||||
"${GITEA_URL}/api/v1/repos/${GITEA_OWNER}/${GITEA_REPO}/releases"
|
|
||||||
cat /tmp/lightops-release-list.json
|
|
||||||
cd lightops-src
|
cd lightops-src
|
||||||
TAG="$(cat /tmp/lightops-release-tag)"
|
TAG="$(cat /tmp/lightops-release-tag)"
|
||||||
TARGET_SHA="$(git rev-parse HEAD)"
|
TARGET_SHA="$(git rev-parse HEAD)"
|
||||||
|
|||||||
Reference in New Issue
Block a user