Skip to content

Commit

Permalink
Resolve #104
Browse files Browse the repository at this point in the history
  • Loading branch information
L0RD-ZER0 committed Mar 13, 2024
1 parent 68c1f35 commit 15311b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ if [[ -n "$SITE_NAME" ]]; then
fi


if [[ -z "$SLACK_MESSAGE" ]]; then
if [[ -z "$SLACK_MESSAGE" && "null" != "$COMMIT_MESSAGE" ]]; then
SLACK_MESSAGE="$COMMIT_MESSAGE"
fi

if [[ -z "$SLACK_MESSAGE" ]]; then
SLACK_MESSAGE="Notification from action run \`$GITHUB_RUN_NUMBER\`, which ran against commit \`${GITHUB_SHA}\` from branch \`${GITHUB_BRANCH}\` of \`${GITHUB_REPOSITORY}\` repository."
fi

if [[ "true" == "$ENABLE_ESCAPES" ]]; then
SLACK_MESSAGE="$(echo -e "$SLACK_MESSAGE")"
fi
Expand Down

0 comments on commit 15311b1

Please sign in to comment.