Skip to content

[fix] #143 - test

[fix] #143 - test #88

name: Notify Slack on PR Creation
on:
pull_request:
branches:
- develop
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: action-slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
text: "💚 PR이 생성되었습니다\n${{ github.event.pull_request.title }}"
author_name: ${{ steps.get_author_name.outputs.author_name }}
fields: repo,author # action,eventName,ref,workflow,job,took 추가할 수 있음
mention: here
if_mention: failure,cancelled
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: always() # Pick up events even if the job fails or is canceled.