File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Notify Slack - Issues
2+
3+ on :
4+ issues :
5+ types : [opened, reopened]
6+
7+ permissions : {}
8+
9+ jobs :
10+ notify :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Send issue notification to Slack
14+ uses : slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
15+ with :
16+ webhook : ${{ secrets.SLACK_WEBHOOK_URL_ISSUE }}
17+ webhook-type : incoming-webhook
18+ payload : |
19+ {
20+ "action": "${{ github.event.action }}",
21+ "issue_url": "${{ github.event.issue.html_url }}",
22+ "package_name": "${{ github.repository }}"
23+ }
Original file line number Diff line number Diff line change 1+ name : Notify Slack - Pull Requests
2+
3+ on :
4+ pull_request_target :
5+ types : [opened, reopened, ready_for_review]
6+
7+ permissions : {}
8+
9+ jobs :
10+ notify :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Send pull request notification to Slack
14+ if : github.event.pull_request.draft == false
15+ uses : slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
16+ with :
17+ webhook : ${{ secrets.SLACK_WEBHOOK_URL_PR }}
18+ webhook-type : incoming-webhook
19+ payload : |
20+ {
21+ "action": "${{ github.event.action }}",
22+ "pr_url": "${{ github.event.pull_request.html_url }}",
23+ "package_name": "${{ github.repository }}"
24+ }
Original file line number Diff line number Diff line change 1+ name : Notify Slack - Release
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ tag_name :
7+ required : true
8+ type : string
9+ release_url :
10+ required : true
11+ type : string
12+
13+ permissions : {}
14+
15+ jobs :
16+ notify :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Send release notification to Slack
20+ uses : slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
21+ with :
22+ webhook : ${{ secrets.SLACK_WEBHOOK_URL_RELEASE }}
23+ webhook-type : incoming-webhook
24+ payload : |
25+ {
26+ "tag_name": "${{ inputs.tag_name }}",
27+ "release_url": "${{ inputs.release_url }}",
28+ "package_name": "${{ github.repository }}"
29+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6969 uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
7070 with :
7171 packages-dir : dist/
72+
73+ notify-release :
74+ needs : [pypi-publish]
75+ uses : ./.github/workflows/notify-release.yml
76+ with :
77+ tag_name : ${{ github.event.release.tag_name }}
78+ release_url : ${{ github.event.release.html_url }}
79+ secrets : inherit
You can’t perform that action at this time.
0 commit comments