File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 30
30
# and set up git (with GIT_CMD variable) and GIT_CMD_REPOSITORY
31
31
if [ -n " ${SSH_DEPLOY_KEY:= } " ]
32
32
then
33
+ echo " [+] Using SSH_DEPLOY_KEY"
34
+
33
35
# Inspired by https://github.com/leigholiver/commit-with-deploy-key/blob/main/entrypoint.sh , thanks!
34
36
mkdir --parents " $HOME /.ssh"
35
37
DEPLOY_KEY_FILE=" $HOME /.ssh/deploy_key"
45
47
46
48
elif [ -n " ${API_TOKEN_GITHUB:= } " ]
47
49
then
50
+ echo " [+] Using API_TOKEN_GITHUB"
48
51
GIT_CMD_REPOSITORY=" https://$DESTINATION_REPOSITORY_USERNAME :$API_TOKEN_GITHUB @$GITHUB_SERVER /$DESTINATION_REPOSITORY_USERNAME /$DESTINATION_REPOSITORY_NAME .git"
49
52
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) "
51
54
exit 1
52
55
fi
53
56
You can’t perform that action at this time.
0 commit comments