Skip to content

Commit

Permalink
Expand readme guide
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q committed Oct 25, 2024
1 parent c865285 commit 5346805
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/slack-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

0 comments on commit 5346805

Please sign in to comment.