From 587cb6a2ced46c5dae3a11a95421e726ec8120a4 Mon Sep 17 00:00:00 2001 From: Michael Riley Date: Fri, 19 Apr 2024 13:13:40 -0400 Subject: [PATCH] Update mattermost notification action --- .github/workflows/notify-pr.yml | 6 +++--- .github/workflows/release.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/notify-pr.yml b/.github/workflows/notify-pr.yml index 8d98c591..dc1756d9 100644 --- a/.github/workflows/notify-pr.yml +++ b/.github/workflows/notify-pr.yml @@ -9,8 +9,8 @@ jobs: steps: - run: | echo "{\"text\":\"Packer: PR https://github.com/vultr/packer-builder-vultr/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 }} \ No newline at end of file + MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8f45781..572703b9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,8 +72,8 @@ jobs: API_VERSION: ${{ steps.plugin_describe.outputs.api_version }} - run: | echo "{\"text\":\"Packer : 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.0 + with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}} MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }}