This commit is contained in:
ange 2024-11-18 16:08:17 +00:00
parent f33a44cfd6
commit a253b6b864
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D

View File

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