更新 .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:
@@ -23,6 +23,18 @@ jobs:
|
|||||||
runs-on: self_website
|
runs-on: self_website
|
||||||
|
|
||||||
steps:
|
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
|
- name: Checkout repository
|
||||||
uses: herryyun/checkout@v4
|
uses: herryyun/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user