diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c866dca..0bd8f63 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,7 +44,10 @@ jobs: # 添加上游仓库作为远程仓库,并获取上游仓库的main分支的最新更改 - name: Fetch upstream changes run: | - git remote add upstream NianBroken/ZFCheckScores + REPO_NAME="NianBroken/ZFCheckScores" + REPO_URL="https://github.com/$REPO_NAME.git" + echo "Repo Url: $$REPO_URL" + git remote add upstream "$REPO_URL" git fetch upstream main # 对比当前分支的main.yml文件与上游分支的main.yml文件是否一致