Skip to content

How to control notifications for cron triggered workflows? #25351

Answered by weide-zhou
pcstout asked this question in Actions
Discussion options

You must be logged in to vote

Hi @pcstout,

This is by designed. As a workaround, you can add a step to send out the notification to a list of users.
You can find a lot of ‘send email’ actions in the marketpace.
For example, you can use:

      - name: failed step
        run: |
          exit 1
      - name: Send mail
        if: failure()
        uses: dawidd6/action-send-mail@v2
        with:
          server_address: smtp.gmail.com
          server_port: 465
          username: ${{secrets.MAIL_USERNAME}}
          password: ${{secrets.MAIL_PASSWORD}}
          subject: Github Actions job result
          # Literal body:
          body: Build job of ${{github.repository}} Failed!
          # Read file contents as bod…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants