From e15d1399f4546fca4203e8f18fe27d60d0789b45 Mon Sep 17 00:00:00 2001 From: Nikita Andriyanov Date: Mon, 23 Dec 2024 18:47:28 +0300 Subject: [PATCH] fix --- .github/workflows/build.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0e2e0a2..cccd955 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -5,6 +5,7 @@ jobs: runs-on: gpu env: #DOCKER_HOST: tcp://${{ matrix.config.host }}:2376 + MESSAGE: "${{ github.repository }} [${{ github.action }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_number }}) was" CR_REGISTRY: crp8vh46gd976oq8ipla CR_REPO: ${{ github.event.repository.name }} IMAGE_TAG: ${{ github.sha }} @@ -28,4 +29,21 @@ jobs: - name: Push image run: | docker push cr.yandex/$CR_REGISTRY/$CR_REPO:${IMAGE_TAG::7} - docker push cr.yandex/$CR_REGISTRY/$CR_REPO:latest \ No newline at end of file + docker push cr.yandex/$CR_REGISTRY/$CR_REPO:latest + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "$GITHUB_CONTEXT " + - uses: mattermost/action-mattermost-notify@master + if: success() + with: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }} + TEXT: "${{ env.MESSAGE }} success :white_check_mark:" + - uses: mattermost/action-mattermost-notify@master + if: failure() + with: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MM_WEBHOOK_URL }} + TEXT: "${{ env.MESSAGE }} failed :x:" + + + \ No newline at end of file