diff --git a/.gitea/workflows/varnish-exporter.yml b/.gitea/workflows/varnish-exporter.yml index 84335d6..a78a6d0 100644 --- a/.gitea/workflows/varnish-exporter.yml +++ b/.gitea/workflows/varnish-exporter.yml @@ -111,3 +111,12 @@ jobs: files: |- bin/** token: "${{ secrets.RELEASE_TOKEN }}" + + - name: Send notification to mattermost + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.MATTERMOST_WEBHOOK }} + SLACK_USERNAME: gitea-bot + SLACK_CHANNEL: gitea-actions + SLACK_COLOR: ${{ job.status }} + SLACK_CUSTOM_PAYLOAD: '{"username": "gitea-bot", "icon_url": "https://w7.pngwing.com/pngs/940/571/png-transparent-gitea-hd-logo-thumbnail.png", "text": "varnish-exporter build has just finished in version $VERSION !"}'