ci: use direct git checkout for Gitea Actions
This commit is contained in:
@@ -14,7 +14,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
run: |
|
||||
set -euo pipefail
|
||||
GITEA_URL="${GITHUB_SERVER_URL:-http://192.168.31.213:10880}"
|
||||
git init -q .
|
||||
git remote add origin "$GITEA_URL/$GITHUB_REPOSITORY.git"
|
||||
git fetch -q --depth 1 origin "$GITHUB_SHA"
|
||||
git checkout -q "$GITHUB_SHA"
|
||||
|
||||
- name: Login Harbor
|
||||
run: |
|
||||
@@ -46,7 +52,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout deploy config
|
||||
uses: actions/checkout@v4
|
||||
run: |
|
||||
set -euo pipefail
|
||||
GITEA_URL="${GITHUB_SERVER_URL:-http://192.168.31.213:10880}"
|
||||
git init -q .
|
||||
git remote add origin "$GITEA_URL/$GITHUB_REPOSITORY.git"
|
||||
git fetch -q --depth 1 origin "$GITHUB_SHA"
|
||||
git checkout -q "$GITHUB_SHA"
|
||||
|
||||
- name: Deploy WordCloud
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user