From 9b559a35865953eb0ffd00331fc15a27948986cf Mon Sep 17 00:00:00 2001 From: Michael Riley Date: Fri, 19 Apr 2024 12:57:18 -0400 Subject: [PATCH] Fix mattermost notification actions --- .github/workflows/notify-pr.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/notify-pr.yml b/.github/workflows/notify-pr.yml index ca1ff9c5..aaf791cf 100644 --- a/.github/workflows/notify-pr.yml +++ b/.github/workflows/notify-pr.yml @@ -9,8 +9,8 @@ jobs: steps: - run: | echo "{\"text\":\"Vultr-node : PR https://github.com/vultr/vultr-node/pull/${{ github.event.number }} \"}" > mattermost.json - - uses: mattermost/action-mattermost-notify@master - env: + - 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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3229903e..9f28620d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -93,8 +93,8 @@ jobs: run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - run: | echo "{\"text\":\"Vultr-Node : Release https://github.com/${{ github.repository }}/releases/tag/${{ needs.create-tag.outputs.new_tag }} \"}" > mattermost.json - - uses: mattermost/action-mattermost-notify@master - env: + - uses: mattermost/action-mattermost-notify@2.0.02.0.02.0.0 + with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}} - MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }} \ No newline at end of file + MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }}