更新 .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:
@@ -24,20 +24,20 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Test token with wget
|
||||
run: |
|
||||
echo "Testing token authentication..."
|
||||
wget -q --header="Authorization: token ${{ secrets.TOKEN }}" \
|
||||
run: |
|
||||
echo "Testing token authentication..."
|
||||
wget -q --header="Authorization: token ${{ secrets.TOKEN }}" \
|
||||
--spider https://git.crash.work/api/v1/user || echo "wget test failed"
|
||||
|
||||
- name: Test git access
|
||||
run: |
|
||||
echo "Testing git clone with token..."
|
||||
git clone https://${{ secrets.TOKEN }}@git.crash.work/herryyun/checkout.git /tmp/test-checkout
|
||||
ls -la /tmp/test-checkout
|
||||
env:
|
||||
GIT_TERMINAL_PROMPT: 0
|
||||
- name: Test git access
|
||||
run: |
|
||||
echo "Testing git clone with token..."
|
||||
git clone https://${{ secrets.TOKEN }}@git.crash.work/herryyun/checkout.git /tmp/test-checkout
|
||||
ls -la /tmp/test-checkout
|
||||
env:
|
||||
GIT_TERMINAL_PROMPT: 0
|
||||
|
||||
- name: Checkout repository
|
||||
uses: herryyun/checkout@v4.0.0
|
||||
with:
|
||||
token: ${{ secrets.TOKEN }}
|
||||
- name: Checkout repository
|
||||
uses: herryyun/checkout@v4.0.0
|
||||
with:
|
||||
token: ${{ secrets.TOKEN }}
|
||||
Reference in New Issue
Block a user