73 fix ๊ฒ์๊ธฐ ํ๋ฉด์ ๊ณต๋ฃก๊ฒ์ ๋ง์ถ๊ธฐ #95
Workflow file for this run
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: Detailed Notifications to Microsoft 365 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
types: [opened, reopened, closed] | |
jobs: | |
notify: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Notify on Push | |
if: github.event_name == 'push' | |
run: | | |
curl -H "Content-Type: application/json" -d "{\"text\": \"๐ ํ๋ณต ์ปค๋ฐ์ด ์ฐจ๊ณก์ฐจ๊ณก ์์ธ๋ค : ${GITHUB_REF} by ${GITHUB_ACTOR}. Commit message: '${{ github.event.commits[0].message }}'.\"}" ${{ secrets.M365_WEBHOOK_URL }} | |
env: | |
GITHUB_REF: ${{ github.ref }} | |
GITHUB_ACTOR: ${{ github.actor }} | |
- name: Notify on Pull Request | |
if: github.event_name == 'pull_request' | |
run: | | |
curl -H "Content-Type: application/json" -d "{\"text\": \"๐ ํ๋ณต ์ปค๋ฐ ์์ฒญ: ${{ github.event.pull_request.title }} by ${{ github.event.pull_request.user.login }}. Action: ${{ github.event.action }}, URL: ${{ github.event.pull_request.html_url }}.\"}" ${{ secrets.M365_WEBHOOK_URL }} |