mirror of
https://github.com/cpina/github-action-push-to-another-repository.git
synced 2024-12-21 23:56:09 -07:00
Try a better way to report errors
This commit is contained in:
parent
b8ba82a17f
commit
331033bc0f
|
@ -38,9 +38,9 @@ GIT_CLONE_EXIT_CODE=$?
|
|||
|
||||
if [ "$GIT_CLONE_EXIT_CODE" != 0 ]
|
||||
then
|
||||
echo "Could not clone the destination repository. Tried with:" >&2
|
||||
echo "git clone --single-branch --branch $TARGET_BRANCH https://$USER_NAME:the_api_token@$GITHUB_SERVER/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git $CLONE_DIR" >&2
|
||||
echo "Please verify that the branch $TARGET_BRANCH exist in the target repository and that the repository exist and is accessible by your API_TOKEN_GITHUB" >&2
|
||||
echo "::error::Could not clone the destination repository. Tried with:"
|
||||
echo "::error::git clone --single-branch --branch $TARGET_BRANCH https://$USER_NAME:the_api_token@$GITHUB_SERVER/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git $CLONE_DIR"
|
||||
echo "::error::Please verify that the branch $TARGET_BRANCH exist in the target repository and that the repository exist and is accessible by your API_TOKEN_GITHUB"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user