Skip to content

Commit

Permalink
fix: link to commit hash for external deployment
Browse files Browse the repository at this point in the history
Close #72
  • Loading branch information
peaceiris committed Jan 6, 2020
1 parent 127155c commit 2eee632
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ git remote add origin "${remote_repo}"
git add --all

print_info "Allowing empty commits: ${INPUT_EMPTYCOMMITS}"
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}"

if [ -n "${EXTERNAL_REPOSITORY}" ]; then
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_REPOSITORY}@${GITHUB_SHA}"
else
COMMIT_MESSAGE="Automated deployment: $(date -u) ${GITHUB_SHA}"
fi

if [[ ${INPUT_EMPTYCOMMITS} == "false" ]]; then
git commit -m "${COMMIT_MESSAGE}" || skip
else
Expand Down

0 comments on commit 2eee632

Please sign in to comment.