重写steps
Some checks failed
Create README / create-readme (push) Failing after 16s

This commit is contained in:
liyp 2025-04-10 15:30:03 +08:00
parent f7d7f72209
commit a134b01d34

View File

@ -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: |