diff --git a/.github/workflows/conan-packages.yml b/.github/workflows/conan-packages.yml index 1e3565e..537dc31 100644 --- a/.github/workflows/conan-packages.yml +++ b/.github/workflows/conan-packages.yml @@ -206,3 +206,31 @@ jobs: if: github.event_name != 'schedule' uses: ./.github/workflows/conan-publish.yml secrets: inherit + + notify: + name: Notify failure + runs-on: ubuntu-latest + if: ${{ always() && contains(needs.*.result, 'failure') && github.event_name == 'schedule' }} + needs: + - generate-matrix + - build + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_ARCHITECTURE }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + steps: + - name: Send slack notification + id: slack + uses: slackapi/slack-github-action@v1.24.0 + with: + payload: | + { + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*${{ github.repository }}* :fire::fire::fire::fire::fire: \n The scheduled build for *${{ github.repository }}* is <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|broken>" + } + } + ] + }