mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-22 08:06:10 -07:00
explicitly clone and use master branch
This commit is contained in:
parent
dc3ca8455d
commit
a76c6fd84a
|
@ -18,7 +18,7 @@ echo "Cloning destination git repository"
|
|||
# Setup git
|
||||
git config --global user.email "$USER_EMAIL"
|
||||
git config --global user.name "$GITHUB_USERNAME"
|
||||
git clone "https://$API_TOKEN_GITHUB@github.com/$REPO_USERNAME/$GITHUB_REPO.git" "$CLONE_DIR"
|
||||
git clone --single-branch --branch master "https://$API_TOKEN_GITHUB@github.com/$REPO_USERNAME/$GITHUB_REPO.git" "$CLONE_DIR"
|
||||
ls -la "$CLONE_DIR"
|
||||
|
||||
echo "Cleaning destination repository of old files"
|
||||
|
|
Loading…
Reference in New Issue
Block a user