更新 .gitea/workflows/build-image.yml
Some checks failed
Build Gradle Dragonwell Image / build (push) Failing after 0s
Some checks failed
Build Gradle Dragonwell Image / build (push) Failing after 0s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user