ci: use direct git checkout for Gitea Actions
This commit is contained in:
@@ -14,7 +14,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- 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
|
- name: Login Harbor
|
||||||
run: |
|
run: |
|
||||||
@@ -46,7 +52,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout deploy config
|
- 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
|
- name: Deploy WordCloud
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user