Skip to content

Webhook Fix

Webhook Fix #8

name: release-notification
on:
pull_request:
branches:
- main
types:
- closed
workflow_dispatch:
env:
PR_NUMBER: ${{ github.event.number }}
CC_SLACK_WEBHOOK: ${{ secrets.CC_SLACK_WEBHOOK }}
jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
environment: cc-test-release
steps:
- name: Print Body
env:
PR_BODY: ${{ github.event.pull_request.body }}
run: echo "$PR_BODY"
- name: Sending Notification - Slack
uses: actions/github-script@v7
with:
script: |
const sendSlackMessage = require('./.github/workflows/send-slack.js')
sendSlackMessage(github.event.pull_request.body,process.env.CC_SLACK_WEBHOOK)