Skip to content

Commit

Permalink
Create notification.yml (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerZhongAWS authored Jan 27, 2023
1 parent 8058598 commit 851de4c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/notification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: GitHub Issue notifications

on: [issue_comment,issues]

env:
ACTION_NAME: ${{ github.event.action }}
EVENT_NAME: ${{ github.event_name }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
ISSUE_TITLE: ${{ github.event.issue.title }}


jobs:
issue-notification:
runs-on: ubuntu-latest
steps:
- name: Send notifications on Slack
uses: slackapi/[email protected]
with:
payload: |
{
"action": "${{env.ACTION_NAME}}",
"eventName": "${{env.EVENT_NAME}}",
"issueNumber": "${{env.ISSUE_NUMBER}}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 851de4c

Please sign in to comment.