ravsamhq / notify-slack-action

🔔 Send a Slack Notification from Github Actions regarding failure, warnings, or even success.
https://ravsam.in/blog/send-slack-notification-when-github-actions-fails/
MIT License
173 stars 57 forks source link

Canceled runs are notified as "passed with warnings" #99

Open wookayin opened 1 year ago

wookayin commented 1 year ago

I'm using notify-slack-action@v2. When I manually interrupt or cancel the workflow, a wrong notification is made saying the job has been passed with warnings. It should instead say something like the job was cancelled or failed.

:large_orange_diamond: Run Tests passed with warnings in
      - name: Report status to Slack
        if: always()
        uses: ravsamhq/notify-slack-action@v2
        with:
          status: ${{ job.status }}
          notify_when: "failure,cancelled"
        env:
          SLACK_WEBHOOK_URL: ${{ secrets.ACTION_NOTIFICATION_SLACK }}
ravsam-bot[bot] commented 1 year ago

Hello and welcome to RavSam :purple_heart:. Thanks for opening your first issue. I will assign one of our team members to take a look at the problem you have raised. Make sure to include as much information as possible to help our team diagnose the issue and solve it quickly.

If the problem is related to a security concern, then please delete this issue and send us an email at info@ravsam.in.