update github actons #1
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: 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 |