Skip to content

Commit

Permalink
fix action failing
Browse files Browse the repository at this point in the history
  • Loading branch information
nkoppel committed Mar 4, 2022
1 parent 5c4c8b7 commit 993c4b2
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,22 @@ fi
CLONE_DIRECTORY=$(mktemp -d)

echo
echo "##### Cloning destination git repository #####"
echo "##### Cloning source git repository #####"
# Setup git
git config --global user.email "$COMMIT_EMAIL"
git config --global user.name "$DESTINATION_USERNAME"

# Remove git directory if it exists to prevent errors
rm -rf .git

git clone "https://github.com/$GITHUB_REPOSITORY.git" repo

cd repo
ls -la

echo
echo "##### Cloning destination git repository #####"

git clone --single-branch --branch "$DESTINATION_BRANCH" "https://$API_TOKEN_GITHUB@github.com/$DESTINATION_USERNAME/$DESTINATION_REPOSITORY.git" "$CLONE_DIRECTORY"
ls -la "$CLONE_DIRECTORY"

Expand Down

0 comments on commit 993c4b2

Please sign in to comment.