From 04c647d394dfdce5d0f45041de7921cc012ac40c Mon Sep 17 00:00:00 2001 From: Nikita Andriyanov Date: Mon, 23 Dec 2024 12:50:22 +0300 Subject: [PATCH] add sample --- .github/workflows/notify.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/notify.yaml diff --git a/.github/workflows/notify.yaml b/.github/workflows/notify.yaml new file mode 100644 index 0000000..f16e98c --- /dev/null +++ b/.github/workflows/notify.yaml @@ -0,0 +1,16 @@ +name: notify + +on: + workflow_call: +jobs: + gradle-build: + runs-on: ubuntu-latest + steps: + - uses: mattermost/action-mattermost-notify@master + with: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }} + PAYLOAD: | + { + "text": "${{ github.repository }} [Pipeline](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was canceled :man_facepalming:" + } +