Skip to content

Commit

Permalink
Merge pull request #11 from L0RD-ZER0/#104
Browse files Browse the repository at this point in the history
Resolve #104
  • Loading branch information
L0RD-ZER0 committed Mar 13, 2024
2 parents 78bd342 + 15311b1 commit 3d999d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.sh
Expand Up @@ -61,10 +61,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 3d999d9

Please sign in to comment.