refactor: Simplify VMM code to perform API action on device #2323
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Send notification on PR opened | |
on: | |
pull_request_target: | |
types: [labeled] | |
jobs: | |
send_notification: | |
runs-on: ubuntu-latest | |
steps: | |
- name: notify | |
run: | | |
if ${{ github.event.label.name == format('Status{0} Awaiting review', ':') }}; then | |
curl -X POST ${{ secrets.SLACK_PR_NOTIFICATION_WEBHOOK }} \ | |
-H 'Content-Type: application/json' \ | |
-d '{ "GITHUB_PR_URL": "${{ github.event.pull_request.html_url }}", | |
"PR_ADDITIONS": "${{ github.event.pull_request.additions }}", | |
"PR_DELETIONS": "${{ github.event.pull_request.deletions }}", | |
"PR_CHANGED_FILES": "${{ github.event.pull_request.changed_files }}"}' | |
fi |