fix: fetch mandatory
This commit is contained in:
parent
8b30557d64
commit
49de0152da
@ -5,5 +5,9 @@ echo "$INPUT_SSH_PRIV" > "$HOME/.ssh/id_ed25519"
|
||||
echo "$INPUT_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
|
||||
chmod 600 "$HOME/.ssh/id_ed25519"
|
||||
|
||||
git remote set-url --push origin "$INPUT_URL"
|
||||
git push origin "main:$GITHUB_REF_NAME"
|
||||
URL="${GITHUB_SERVER_URL/\/\//\/\/$GITHUB_REPOSITORY_OWNER:$INPUT_TOKEN@}/$GITHUB_REPOSITORY"
|
||||
|
||||
git init -b "$GITHUB_REF_NAME"
|
||||
git remote add origin "$URL"
|
||||
git fetch -pP
|
||||
git push origin --repo="$INPUT_URL" --mirror
|
||||
|
Loading…
Reference in New Issue
Block a user