更新 .gitea/workflows/build-image.yml
Some checks failed
Build Gradle Dragonwell Image / build (push) Failing after 0s

This commit is contained in:
2025-09-11 10:39:34 +08:00
parent abbd803f53
commit 68651496d7

View File

@@ -21,8 +21,20 @@ env:
jobs:
build:
runs-on: self_website
steps:
- name: Check Secret availability
run: |
echo "Checking if TOKEN secret exists..."
if [ -n "${{ secrets.TOKEN }}" ]; then
echo "TOKEN secret is available"
# 测试token有效性
curl -f -H "Authorization: token ${{ secrets.TOKEN }}" \
https://git.crash.work/api/v1/user/repos | head -5
else
echo "TOKEN secret is NOT available"
fi
- name: Checkout repository
uses: herryyun/checkout@v4
with: