Skip to content

Commit 3d999d9

Browse files
authored
Merge pull request #11 from L0RD-ZER0/#104
Resolve #104
2 parents 78bd342 + 15311b1 commit 3d999d9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,14 @@ if [[ -n "$SITE_NAME" ]]; then
6161
fi
6262

6363

64-
if [[ -z "$SLACK_MESSAGE" ]]; then
64+
if [[ -z "$SLACK_MESSAGE" && "null" != "$COMMIT_MESSAGE" ]]; then
6565
SLACK_MESSAGE="$COMMIT_MESSAGE"
6666
fi
6767

68+
if [[ -z "$SLACK_MESSAGE" ]]; then
69+
SLACK_MESSAGE="Notification from action run \`$GITHUB_RUN_NUMBER\`, which ran against commit \`${GITHUB_SHA}\` from branch \`${GITHUB_BRANCH}\` of \`${GITHUB_REPOSITORY}\` repository."
70+
fi
71+
6872
if [[ "true" == "$ENABLE_ESCAPES" ]]; then
6973
SLACK_MESSAGE="$(echo -e "$SLACK_MESSAGE")"
7074
fi

0 commit comments

Comments
 (0)