This commit is contained in:
@@ -26,10 +26,14 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
env:
|
||||
REPOSITORY_URL: http://117.72.28.96:8765/Jacky/Hulumath-Web.git
|
||||
CHECKOUT_TOKEN: ${{ github.token }}
|
||||
REVISION: ${{ gitea.sha }}
|
||||
run: |
|
||||
git clone "$REPOSITORY_URL" .
|
||||
set -euo pipefail
|
||||
git init .
|
||||
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
|
||||
git -c http.extraHeader="Authorization: token ${CHECKOUT_TOKEN}" \
|
||||
fetch --depth=1 origin "$REVISION"
|
||||
git checkout --detach "$REVISION"
|
||||
- name: Show Python version
|
||||
run: python3 --version
|
||||
|
||||
Reference in New Issue
Block a user