feat: change branch name
This commit is contained in:
parent
393a57abdd
commit
9a7167c0f4
@ -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 main
|
||||
git init -b "$GITHUB_REF_NAME"
|
||||
git remote add origin "$URL"
|
||||
git fetch --no-tags --prune --no-recurse-submodules origin "$GITHUB_SHA"
|
||||
git push --repo="$INPUT_URL" origin "$GITHUB_SHA:$GITHUB_REF"
|
||||
git push --repo="$INPUT_URL" origin "$GITHUB_REF_NAME:$GITHUB_REF"
|
||||
|
Loading…
Reference in New Issue
Block a user