rtCamp/action-slack-notify

SLACK_ICON_EMOJI randomly displayed

Closed this issue · 1 comments

I'm using custom emojis but for some reason they are not displayed every time

      - name: Slack Notification (Success)
        if: success()
        uses: rtCamp/action-slack-notify@v2
        env:
          SLACK_CHANNEL: drone
          SLACK_COLOR: ${{ job.status }}
          SLACK_ICON_EMOJI: ':cicd_success_1:'
          SLACK_USERNAME: <Add client/project name>
          SLACK_WEBHOOK: ***
          SLACK_FOOTER: <Add staging URL and/or storybook URL>
      
      - name: Slack Notification (Failure)
        if: failure()
        uses: rtCamp/action-slack-notify@v2
        env:
          SLACK_CHANNEL: drone
          SLACK_COLOR: ${{ job.status }}
          SLACK_ICON_EMOJI: ':facepalm:'
          SLACK_USERNAME: <Add client/project name>
          SLACK_WEBHOOK: ***
          SLACK_FOOTER: Sorry Mate

      - name: Slack Notification (Cancelled)
        if: cancelled()
        uses: rtCamp/action-slack-notify@v2
        env:
          SLACK_CHANNEL: drone
          SLACK_COLOR: ${{ job.status }}
          SLACK_ICON_EMOJI: ':troll:'
          SLACK_USERNAME: <Add client/project name>
          SLACK_WEBHOOK: ***
          SLACK_FOOTER: You shall not pass

Screen Shot 2022-04-09 at 16 50 39

When you send messages within a short duration of time, the slack profile image/emoji is not shown again.