From d40a8348284ff8c035f9bef6023c71c011031e21 Mon Sep 17 00:00:00 2001 From: Michael Riley Date: Thu, 9 May 2024 17:56:00 -0400 Subject: [PATCH] Fix mattermost notifications (#307) --- .github/workflows/notify-issue.yml | 5 ++--- .github/workflows/notify-pr.yml | 5 ++--- .github/workflows/releaser.yml | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/notify-issue.yml b/.github/workflows/notify-issue.yml index fa2208d..6a05ea3 100644 --- a/.github/workflows/notify-issue.yml +++ b/.github/workflows/notify-issue.yml @@ -9,10 +9,9 @@ jobs: runs-on: ubuntu-latest name: New Issue Notification steps: - - run: | - echo "{\"text\":\"GoVultr : New Issue https://github.com/vultr/govultr/issues/${{ github.event.issue.number }} \"}" > mattermost.json - uses: mattermost/action-mattermost-notify@2.0.0 with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}} - MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }} + MATTERMOST_ICON_URL: ${{ secrets.MATTERMOST_ICON }} + TEXT: "${{ github.repository }}: New Issue https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }}" diff --git a/.github/workflows/notify-pr.yml b/.github/workflows/notify-pr.yml index a266c25..e3f3c22 100644 --- a/.github/workflows/notify-pr.yml +++ b/.github/workflows/notify-pr.yml @@ -7,10 +7,9 @@ jobs: runs-on: ubuntu-latest name: Pull Request Notification steps: - - run: | - echo "{\"text\":\"GoVultr : PR https://github.com/vultr/govultr/pull/${{ github.event.number }} \"}" > mattermost.json - uses: mattermost/action-mattermost-notify@2.0.0 with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}} - MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }} + MATTERMOST_ICON_URL: ${{ secrets.MATTERMOST_ICON }} + TEXT: "${{ github.repository }} : PR https://github.com/${{ github.repository }}/pull/${{ github.event.number }}" diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 28a7d55..8474f20 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -69,10 +69,9 @@ jobs: needs: ["goreleaser", "create-tag"] name: Release Notification steps: - - run: | - echo "{\"text\":\"GoVultr : Release https://github.com/${{ github.repository }}/releases/tag/${{ needs.create-tag.outputs.new_tag }} \"}" > mattermost.json - uses: mattermost/action-mattermost-notify@2.0.0 with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}} - MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }} + MATTERMOST_ICON_URL: ${{ secrets.MATTERMOST_ICON }} + TEXT: "${{ github.repository }} : Release https://github.com/${{ github.repository }}/releases/tag/${{ needs.create-tag.outputs.new_tag }}"