Skip to content

Commit 94069b9

Browse files
authored
Refactor Mattermost notification message creation
1 parent 0aa9d8e commit 94069b9

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/mattermost.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
if: ${{ github.actor != 'dependabot[bot]' }}
99
steps:
10-
- name: Create the Mattermost Message
11-
env:
12-
TITLE: ${{ github.event.pull_request.title }}
13-
HTML_LINK: ${{ github.event.pull_request.html_url }}
14-
run: >
15-
jq -n --arg t "Pull request opened: [${TITLE}](${HTML_LINK})" '{text: $t}'
16-
> mattermost.json
1710
- uses: mattermost/action-mattermost-notify@2.0.0
1811
with:
1912
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}
13+
TEXT: Pull request opened: [${{ github.event.pull_request.title }}}](${{ github.event.pull_request.html_url }})

0 commit comments

Comments
 (0)