forked from aws/aws-durable-execution-sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
24 lines (21 loc) · 722 Bytes
/
Copy pathnotify-pr.yml
File metadata and controls
24 lines (21 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Notify Slack - Pull Requests
on:
pull_request_target:
types: [opened, reopened, ready_for_review]
permissions: {}
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send pull request notification to Slack
if: github.event.pull_request.draft == false
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL_PR }}
webhook-type: incoming-webhook
payload: |
{
"action": "${{ github.event.action }}",
"pr_url": "${{ github.event.pull_request.html_url }}",
"package_name": "${{ github.repository }}"
}