Skip to content

Commit cda33b8

Browse files
committed
Action is more verbose (in order to help debugging)
1 parent f8f86f8 commit cda33b8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

entrypoint.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ fi
3030
# and set up git (with GIT_CMD variable) and GIT_CMD_REPOSITORY
3131
if [ -n "${SSH_DEPLOY_KEY:=}" ]
3232
then
33+
echo "[+] Using SSH_DEPLOY_KEY"
34+
3335
# Inspired by https://github.com/leigholiver/commit-with-deploy-key/blob/main/entrypoint.sh , thanks!
3436
mkdir --parents "$HOME/.ssh"
3537
DEPLOY_KEY_FILE="$HOME/.ssh/deploy_key"
@@ -45,9 +47,10 @@ then
4547

4648
elif [ -n "${API_TOKEN_GITHUB:=}" ]
4749
then
50+
echo "[+] Using API_TOKEN_GITHUB"
4851
GIT_CMD_REPOSITORY="https://$DESTINATION_REPOSITORY_USERNAME:$API_TOKEN_GITHUB@$GITHUB_SERVER/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git"
4952
else
50-
echo "::error::API_TOKEN_GITHUB and SSH_DEPLOY_KEY are empty. Please fill one (recommended the SSH_DEPLOY_KEY"
53+
echo "::error::API_TOKEN_GITHUB and SSH_DEPLOY_KEY are empty. Please fill one (recommended the SSH_DEPLOY_KEY)"
5154
exit 1
5255
fi
5356

0 commit comments

Comments
 (0)