Skip to content

Commit

Permalink
Update notify_merged.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zoracon authored Jul 21, 2023
1 parent e44b83b commit c70506e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/notify_merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ jobs:
- name: Create Mattermost Message
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
env:
NUMBER: ${{ github.event.number }}
NUMBER: ${{ github.event.push.after.id }}
PR_URL: ${{ github.event.push.commits[0].url }}
REPO: ${{ github.repository }}
USER: ${{ github.actor }}
TITLE: ${{ github.ref_name }}
# TITLE: ${{ }}
run: |
jq --null-input \
--arg number "$NUMBER" \
--arg pr_url "$PR_URL" \
--arg repo "$REPO" \
--arg user "$USER" \
--arg title "$TITLE" \
'{ "text": "[\($repo)] | [\($title) #\($number)](\($pr_url)) was merged into master by \($user)" }' > mattermost.json
'{ "text": "[\($repo)] | #$number was merged into master by \($user)" }' > mattermost.json
- uses: mattermost/action-mattermost-notify@master
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_DAILY }}

0 comments on commit c70506e

Please sign in to comment.