Skip to content

Commit

Permalink
fix(GitHub): test bash script syntax support
Browse files Browse the repository at this point in the history
  • Loading branch information
hamikhambardzumyan committed Feb 20, 2024
1 parent 563d723 commit 809832e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/notify-reviewers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ jobs:
PR_ID=${{ github.event.pull_request.number }}
PR_URL=${{ github.event.pull_request.html_url }}
PR_AUTHOR=${{ github.event.pull_request.user.login }}
REVIEWERS=${{ join(github.event.pull_request.requested_reviewers.*.login, ', ') }}
REVIEWERS="- ${{ join(github.event.pull_request.requested_reviewers.*.login, ', ') }}"
MESSAGE="Pull Request: [#$PR_ID]($PR_URL) by @$PR_AUTHOR\nRequested Reviewers: $REVIEWERS"
echo "$MESSAGE"
MESSAGE="@channel\nPull Request: [#$PR_ID]($PR_URL) by @$PR_AUTHOR\nRequested Reviewers: $REVIEWERS"
curl -X POST -H "Content-Type: application/json" -d "{\"text\": \"$MESSAGE\"}" $INTERNAL_NOTIFICATION_CHANNEL_API_ENDPOINT

0 comments on commit 809832e

Please sign in to comment.