feat: better invalid token hint
All checks were successful
push / build (push) Successful in 1m0s

This commit is contained in:
张泊明518370910136 2025-09-22 19:51:12 -07:00
parent 6fd0e74b1c
commit e3576a86ef
GPG Key ID: CA088E6D9284F870

View File

@ -73,11 +73,11 @@ GITEA_ORG_NAME=$org_name
GITEA_ACCESS_TOKEN=$TEAPOT_GITEA_TOKEN
EOF
if ! (cd /tmp && joint-teapot joj3-check-gitea-token "$teapot_config_dir/teapot.env"); then
echo "FATAL: TEAPOT_GITEA_TOKEN invalid" >&2
echo "FATAL: TEAPOT_GITEA_TOKEN invalid, ask admin to update it" >&2
exit 1
fi
else
echo "FATAL: TEAPOT_GITEA_TOKEN not set" >&2
echo "FATAL: TEAPOT_GITEA_TOKEN not set, ask admin to set it" >&2
exit 1
fi
}