Skip to content

update github actons #1

update github actons

update github actons #1

name: Notify Slack on Pull Request Merge to Dev
on:
pull_request:
types: [closed]
jobs:
notify:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'dev'
runs-on: ubuntu-latest
steps:
- name: Send notification to Slack
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
run: |
curl -X POST -H 'Content-type: application/json' --data \
'{"text":"A pull request has been merged into the *dev* branch: <${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}> by *${{ github.event.pull_request.user.login }}*."}' \
$SLACK_WEBHOOK_URL