From 5e169f13672b7132268d162d4675d0e21723477d Mon Sep 17 00:00:00 2001 From: ange Date: Mon, 18 Nov 2024 16:29:04 +0000 Subject: [PATCH] fix: name --- mirror.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirror.sh b/mirror.sh index 9db5614..c538aee 100755 --- a/mirror.sh +++ b/mirror.sh @@ -8,7 +8,7 @@ chmod 600 "$HOME/.ssh/id_ed25519" URL="${GITHUB_SERVER_URL/\/\//\/\/$GITHUB_REPOSITORY_OWNER:$INPUT_TOKEN@}/$GITHUB_REPOSITORY" set -x -git init -b "$GITHUB_REF_NAME" +git init -b main git remote add origin "$URL" git fetch --no-tags --prune --no-recurse-submodules origin "$GITHUB_SHA" -git push "$INPUT_URL" "$GITHUB_REF_NAME:$GITHUB_REF" +git push "$INPUT_URL" "$GITHUB_SHA:$GITHUB_REF"