Skip to content

Commit

Permalink
Update review-requested-slack-notification.yml
Browse files Browse the repository at this point in the history
Use a Set message step
  • Loading branch information
alcuadrado committed Jun 25, 2024
1 parent 323f5f7 commit dfea8c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/review-requested-slack-notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,16 @@ jobs:
requested:
runs-on: ubuntu-latest
steps:
- name: Set message
id: set_message
run: echo "message=$(echo "👉 ${{ github.event.sender.login }} requested your review in: ${{ github.event.pull_request.title }}" | jq -R .)" >> $GITHUB_OUTPUT

- name: Notify of review request
uses: slackapi/[email protected]
with:
payload: |
{
"message": ${{toJSON("👉 ${{github.event.sender.login}} requested your review in: ${{github.event.pull_request.title}}")}},
"message": ${{ steps.set_message.outputs.message }}
"user": "${{ secrets[format('slack_email_{0}', github.event.requested_reviewer.login)] }}",
"pr_url": "${{ github.event.pull_request.html_url }}"
}
Expand Down

0 comments on commit dfea8c3

Please sign in to comment.