Skip to content

[Chore]: migrate deploy-examples.yml to use CloudFormation/SAM #75

[Chore]: migrate deploy-examples.yml to use CloudFormation/SAM

[Chore]: migrate deploy-examples.yml to use CloudFormation/SAM #75

Workflow file for this run

name: Slack Notifications
on:
issues:
types: [opened, reopened]
pull_request_target:
types: [opened, reopened, ready_for_review]
permissions: {}
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send issue notification to Slack
if: github.event_name == 'issues'
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 }}"
}
- name: Send pull request notification to Slack
if: github.event_name == 'pull_request_target' && 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 }}"
}