fix(ci): preserve http protocol in git clone URL
Some checks failed
CI/CD Pipeline / Run Tests (push) Failing after 11s
CI/CD Pipeline / Code Quality Checks (push) Failing after 18s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped

This commit is contained in:
2026-02-02 12:52:39 +01:00
parent 2848bb2f5c
commit 3fab27b166

View File

@@ -17,7 +17,8 @@ jobs:
steps:
- name: Checkout code
run: |
git clone --depth=1 --branch=${GITHUB_REF_NAME} https://oauth2:${{ gitea.token }}@${GITHUB_SERVER_URL#*://}/${GITHUB_REPOSITORY}.git .
REPO_URL=$(echo ${GITHUB_SERVER_URL} | sed "s|://|://oauth2:${{ gitea.token }}@|")
git clone --depth=1 --branch=${GITHUB_REF_NAME} ${REPO_URL}/${GITHUB_REPOSITORY}.git .
git checkout ${GITHUB_SHA}
- name: Install Python and uv
@@ -52,7 +53,8 @@ jobs:
steps:
- name: Checkout code
run: |
git clone --depth=1 --branch=${GITHUB_REF_NAME} https://oauth2:${{ gitea.token }}@${GITHUB_SERVER_URL#*://}/${GITHUB_REPOSITORY}.git .
REPO_URL=$(echo ${GITHUB_SERVER_URL} | sed "s|://|://oauth2:${{ gitea.token }}@|")
git clone --depth=1 --branch=${GITHUB_REF_NAME} ${REPO_URL}/${GITHUB_REPOSITORY}.git .
git checkout ${GITHUB_SHA}
- name: Install Python and uv
@@ -86,7 +88,8 @@ jobs:
steps:
- name: Checkout code
run: |
git clone --depth=1 --branch=${GITHUB_REF_NAME} https://oauth2:${{ gitea.token }}@${GITHUB_SERVER_URL#*://}/${GITHUB_REPOSITORY}.git .
REPO_URL=$(echo ${GITHUB_SERVER_URL} | sed "s|://|://oauth2:${{ gitea.token }}@|")
git clone --depth=1 --branch=${GITHUB_REF_NAME} ${REPO_URL}/${GITHUB_REPOSITORY}.git .
git checkout ${GITHUB_SHA}
- name: Build web image
@@ -110,7 +113,8 @@ jobs:
steps:
- name: Checkout code
run: |
git clone --depth=1 --branch=${GITHUB_REF_NAME} https://oauth2:${{ gitea.token }}@${GITHUB_SERVER_URL#*://}/${GITHUB_REPOSITORY}.git .
REPO_URL=$(echo ${GITHUB_SERVER_URL} | sed "s|://|://oauth2:${{ gitea.token }}@|")
git clone --depth=1 --branch=${GITHUB_REF_NAME} ${REPO_URL}/${GITHUB_REPOSITORY}.git .
git checkout ${GITHUB_SHA}
- name: Login to Gitea Container Registry