From 5346805ae33229948ce30842729ec5599c87a4c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= Date: Fri, 25 Oct 2024 11:30:20 +0100 Subject: [PATCH] Expand readme guide --- .github/workflows/slack-notifier.yml | 8 +++++--- README.md | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/slack-notifier.yml b/.github/workflows/slack-notifier.yml index cc03c59..667f3bf 100644 --- a/.github/workflows/slack-notifier.yml +++ b/.github/workflows/slack-notifier.yml @@ -47,12 +47,14 @@ jobs: id: rate-limit run: | # Check if the last message was sent within the timeout - echo "Preparing to send message:\n" - echo "\"$MESSAGE\"\n" + echo "Preparing to send message:" + echo + echo "\"$MESSAGE\"" + echo if [ -f last-sent-${{ inputs.message-label }}.txt ] then - LAST_SENT=$( cat last-sent.txt ) + LAST_SENT=$( cat last-sent-${{ inputs.message-label }}.txt ) echo "Last sent: $LAST_SENT" NOW=$( date +%s ) echo "Now: $NOW" diff --git a/README.md b/README.md index 77769b2..cb312d0 100644 --- a/README.md +++ b/README.md @@ -232,3 +232,5 @@ jobs: channel. See the [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action?tab=readme-ov-file#technique-2-slack-app) documentation for more information. +If you are using a slack app, make sure to add it to the channel. +See formatting options in the [Slack API documentation](https://api.slack.com/reference/surfaces/formatting).