From a134b01d345e7112225ac0a38ab66182b650ab33 Mon Sep 17 00:00:00 2001 From: liyp Date: Thu, 10 Apr 2025 15:30:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=86=99steps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/AutoGenerateREADME.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/AutoGenerateREADME.yaml b/.gitea/workflows/AutoGenerateREADME.yaml index c2f0f11..9cbd5ee 100644 --- a/.gitea/workflows/AutoGenerateREADME.yaml +++ b/.gitea/workflows/AutoGenerateREADME.yaml @@ -10,12 +10,15 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code + - name: Checkout code from Gitea env: GITEA_TOKEN: ${{ secrets.AUTOGENERATE }} GITEA_REPO_URL: ${{ github.server_url }}/${{ github.repository }} + CLEAN_REPO_URL: ${{ github.server_url }}/${{ github.repository }} run: | - git clone "${GITEA_TOKEN}@${GITEA_REPO_URL}" . + # 去除多余的 https:// + CLEAN_REPO_URL="${CLEAN_REPO_URL#https://}" + git clone "https://${GITEA_TOKEN}@${CLEAN_REPO_URL}" . - name: Create README run: |