Skip to content

Commit

Permalink
Merge pull request #2 from deseretdigital/feature-create-terraform-mo…
Browse files Browse the repository at this point in the history
…dule-for-pub-sub-topics-sc-308777

Adds Slack Notifier
  • Loading branch information
IanKnighton authored Oct 7, 2024
2 parents 0664b09 + ae6c6e3 commit 36544a8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/slack-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Notify Maintainer

on:
pull_request:
types: [opened, reopened]
branches:
- main

jobs:
notify:
name: Send Slack Notification
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Send GitHub Action trigger data to Slack workflow
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"repoName": "${{ github.repository }}",
"prNumber": "${{ github.event.pull_request.number }}",
"requester ": "${{ github.actor }}",
"link": "${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.pull_request.number }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit 36544a8

Please sign in to comment.