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