Fixing workflow reference for slack notifications #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request Notification | |
on: | |
pull_request: | |
types: [opened, reopened, ready_for_review] | |
jobs: | |
notify_integrations_channel: | |
runs-on: ubuntu-latest | |
# avoiding notifications for automated Snyk Pull Requests and draft pull requests | |
if: github.actor != 'mdct-github-service-account' && !github.event.pull_request.draft | |
steps: | |
- name: Slack Notification | |
uses: rtCamp/action-slack-notify@v2 | |
env: | |
SLACK_TITLE: ":github: A new pull request has been created in ${{ github.repository }} by ${{ github.event.pull_request.user.login }}" | |
SLACK_MESSAGE: "${{ github.event.pull_request.html_url }}" | |
MSG_MINIMAL: true | |
SLACK_WEBHOOK: ${{ secrets.INTEGRATIONS_SLACK_WEBHOOK }} |