Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/notify-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Notify Slack - Issues

on:
issues:
types: [opened, reopened]

permissions: {}

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send issue notification to Slack
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL_ISSUE }}
webhook-type: incoming-webhook
payload: |
{
"action": "${{ github.event.action }}",
"issue_url": "${{ github.event.issue.html_url }}",
"package_name": "${{ github.repository }}"
}
24 changes: 24 additions & 0 deletions .github/workflows/notify-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 }}"
}
29 changes: 29 additions & 0 deletions .github/workflows/notify-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Notify Slack - Release

on:
workflow_call:
inputs:
tag_name:
required: true
type: string
release_url:
required: true
type: string

permissions: {}

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send release notification to Slack
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL_RELEASE }}
webhook-type: incoming-webhook
payload: |
{
"tag_name": "${{ inputs.tag_name }}",
"release_url": "${{ inputs.release_url }}",
"package_name": "${{ github.repository }}"
}
39 changes: 0 additions & 39 deletions .github/workflows/notify_slack.yml

This file was deleted.

8 changes: 8 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,11 @@ jobs:
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0
with:
packages-dir: dist/

notify-release:
needs: [pypi-publish]
uses: ./.github/workflows/notify-release.yml
with:
tag_name: ${{ github.event.release.tag_name }}
release_url: ${{ github.event.release.html_url }}
secrets: inherit
Loading