diff --git a/.github/workflows/mattermost.yml b/.github/workflows/mattermost.yml index f854ae01..6a994f2e 100644 --- a/.github/workflows/mattermost.yml +++ b/.github/workflows/mattermost.yml @@ -7,13 +7,7 @@ jobs: runs-on: ubuntu-latest if: ${{ github.actor != 'dependabot[bot]' }} steps: - - name: Create the Mattermost Message - env: - TITLE: ${{ github.event.pull_request.title }} - HTML_LINK: ${{ github.event.pull_request.html_url }} - run: > - jq -n --arg t "Pull request opened: [${TITLE}](${HTML_LINK})" '{text: $t}' - > mattermost.json - uses: mattermost/action-mattermost-notify@2.0.0 - env: + with: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + TEXT: "Pull request opened: [${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})"