This commit is contained in:
parent
f23e219240
commit
81a505c772
|
@ -19,13 +19,19 @@ jobs:
|
||||||
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
||||||
- run: echo "🍏 This job's status is ${{ job.status }}."
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
- run: docker version
|
- run: docker version
|
||||||
- name: Set up SSH
|
# - name: Set up SSH
|
||||||
run: |
|
# run: |
|
||||||
mkdir -p ~/.ssh
|
# mkdir -p ~/.ssh
|
||||||
echo "${{ secrets.GITEA1_SSH_KEY }}" > ~/.ssh/id_rsa
|
# echo "${{ secrets.GITEA1_SSH_KEY }}" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
# chmod 600 ~/.ssh/id_rsa
|
||||||
ssh-keyscan -H 106.14.174.241 >> ~/.ssh/known_hosts
|
# ssh-keyscan -H 106.14.174.241 >> ~/.ssh/known_hosts
|
||||||
- name: Check out repository code
|
# - name: Check out repository code
|
||||||
env:
|
# env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITEA1_TOKEN }}
|
# GITEA_TOKEN: ${{ secrets.GITEA1_TOKEN }}
|
||||||
run: git clone root@106.14.174.241:3000/root/simple-go-action.git .
|
# run: git clone root@106.14.174.241:3000/root/simple-go-action.git .
|
||||||
|
# 检出代码
|
||||||
|
- name: Checkout
|
||||||
|
# 从本地 Gitea 上加载插件仓库
|
||||||
|
uses: http://106.14.174.241:3000//actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
Loading…
Reference in New Issue