From a253b6b864cff7a2513f27d343d67e0d2e8e276a Mon Sep 17 00:00:00 2001 From: ange Date: Mon, 18 Nov 2024 16:08:17 +0000 Subject: [PATCH] verbose --- mirror.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mirror.sh b/mirror.sh index 0d3a2cd..be106a4 100755 --- a/mirror.sh +++ b/mirror.sh @@ -7,7 +7,9 @@ chmod 600 "$HOME/.ssh/id_ed25519" URL="${GITHUB_SERVER_URL/\/\//\/\/$GITHUB_REPOSITORY_OWNER:$INPUT_TOKEN@}/$GITHUB_REPOSITORY" +set -x git init -b main git remote add origin "$URL" git fetch --no-tags --prune --no-recurse-submodules origin "$GITHUB_SHA" -git push --repo="$INPUT_URL" origin "main:$GITHUB_REF" +git push --repo="$INPUT_URL" origin "$GITHUB_REF_NAME" +set +x