Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: link to commit hash for external deployment (#73)
cf. #72
  • Loading branch information
Shohei Ueda authored and GitHub committed Jan 6, 2020
1 parent 127155c commit fd02997
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion entrypoint.sh
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 fd02997

Please sign in to comment.