Skip to content

Commit 2eee632

Browse files
committed
fix: link to commit hash for external deployment
Close #72
1 parent 127155c commit 2eee632

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

entrypoint.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,13 @@ git remote add origin "${remote_repo}"
117117
git add --all
118118

119119
print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}"
120-
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}"
120+
121+
if [ -n "${EXTERNAL_REPOSITORY}" ]; then
122+
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_REPOSITORY}@${GITHUB_SHA}"
123+
else
124+
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}"
125+
fi
126+
121127
if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
122128
git commit -m "${COMMIT_MESSAGE}" || skip
123129
else

0 commit comments

Comments
 (0)