fix(ci): use github.server_url template expression instead of missing GITEA_SERVER_URL env
This commit is contained in:
@@ -34,8 +34,11 @@ jobs:
|
||||
GIT_SSL_NO_VERIFY: "1"
|
||||
run: |
|
||||
apk add --no-cache git
|
||||
SERVER="${{ github.server_url }}"
|
||||
REPO="${{ github.repository }}"
|
||||
TOKEN="${{ github.token }}"
|
||||
git clone --depth 1 \
|
||||
"https://x-access-token:${GITEA_TOKEN}@${GITEA_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \
|
||||
"https://x-access-token:${TOKEN}@${SERVER#https://}/${REPO}.git" \
|
||||
.
|
||||
git fetch --depth 1 origin "${{ github.sha }}"
|
||||
git checkout "${{ github.sha }}"
|
||||
@@ -69,8 +72,11 @@ jobs:
|
||||
GIT_SSL_NO_VERIFY: "1"
|
||||
run: |
|
||||
apk add --no-cache git
|
||||
SERVER="${{ github.server_url }}"
|
||||
REPO="${{ github.repository }}"
|
||||
TOKEN="${{ github.token }}"
|
||||
git clone --depth 1 \
|
||||
"https://x-access-token:${GITEA_TOKEN}@${GITEA_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \
|
||||
"https://x-access-token:${TOKEN}@${SERVER#https://}/${REPO}.git" \
|
||||
.
|
||||
git fetch --depth 1 origin "${{ github.sha }}"
|
||||
git checkout "${{ github.sha }}"
|
||||
@@ -118,8 +124,11 @@ jobs:
|
||||
GIT_SSL_NO_VERIFY: "1"
|
||||
run: |
|
||||
apk add --no-cache git
|
||||
SERVER="${{ github.server_url }}"
|
||||
REPO="${{ github.repository }}"
|
||||
TOKEN="${{ github.token }}"
|
||||
git clone --depth 1 \
|
||||
"https://x-access-token:${GITEA_TOKEN}@${GITEA_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \
|
||||
"https://x-access-token:${TOKEN}@${SERVER#https://}/${REPO}.git" \
|
||||
.
|
||||
git fetch --depth 1 origin "${{ github.sha }}"
|
||||
git checkout "${{ github.sha }}"
|
||||
|
||||
Reference in New Issue
Block a user