test16
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 11s Details

This commit is contained in:
dm 2024-08-13 09:34:39 +08:00
parent 4bc5a281a3
commit c245bc0faa
1 changed files with 14 additions and 10 deletions

View File

@ -19,13 +19,17 @@ jobs:
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: docker version
- name: Set up SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.GITEA1_SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H 106.14.174.241 >> ~/.ssh/known_hosts
- name: Check out repository code
env:
GITEA_TOKEN: ${{ secrets.GITEA1_TOKEN }}
run: git clone root@106.14.174.241:3000/root/simple-go-action.git .
# - name: Set up SSH
# run: |
# mkdir -p ~/.ssh
# echo "${{ secrets.GITEA1_SSH_KEY }}" > ~/.ssh/id_rsa
# chmod 600 ~/.ssh/id_rsa
# ssh-keyscan -H 106.14.174.241 >> ~/.ssh/known_hosts
# - name: Check out repository code
# env:
# GITEA_TOKEN: ${{ secrets.GITEA1_TOKEN }}
# run: git clone root@106.14.174.241:3000/root/simple-go-action.git .
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0