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