From 85a0ac138aacc985224ff800d47119e89d12d02e Mon Sep 17 00:00:00 2001 From: Carles Pina i Estany Date: Sun, 25 Apr 2021 10:57:58 +0100 Subject: [PATCH] Improve the error message --- entrypoint.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 987733c..2d24b83 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -35,10 +35,14 @@ mv "$CLONE_DIR/.git" "$TARGET_DIR" if [ ! -d "$SOURCE_DIRECTORY" ] then echo "$SOURCE_DIRECTORY does not exist" - echo "Reminder: github-action-push-to-another-repository does not do the checkout" - echo "from the source GitHub repository. The checkout needs to be done using" - echo "a different step. See the actions/checkout@v2 in the example file" - echo "https://github.com/cpina/push-to-another-repository-example/blob/master/.github/workflows/ci.yml#L16" + echo "This directory needs to exist when push-to-another-repository is executed" + echo + echo "In the example it is created by ./build.sh: https://github.com/cpina/push-to-another-repository-example/blob/master/.github/workflows/ci.yml#L19" + echo + echo "If you want to copy a directory that exist in the source repository" + echo "to the target repository: you need to clone the source repository" + echo "in a previous step in the same build section. For example using" + echo "actions/checkout@v2. See: https://github.com/cpina/push-to-another-repository-example/blob/master/.github/workflows/ci.yml#L16" exit 1 fi