-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from team-crews/fix/workflow-slack-alarm
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,10 @@ jobs: | |
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Extract Commit Title | ||
id: extract_commit_title | ||
run: echo "COMMIT_TITLE=$(echo "${{ github.event.head_commit.message }}" | head -n 1)" >> $GITHUB_ENV | ||
|
||
- name: Notify Slack on Success | ||
if: success() | ||
uses: slackapi/[email protected] | ||
|
@@ -86,7 +90,7 @@ jobs: | |
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "새로운 개발 서버 버전이 배포됐어요! \n ✅ 요약: ${{ github.event.head_commit.message }} \n ✅ 새 도커 이미지를 PULL 받아주세요" | ||
"text": "새로운 개발 서버 버전이 배포됐어요! \n ✅ 요약: ${{ env.COMMIT_TITLE }} \n ✅ 새 도커 이미지를 PULL 받아주세요" | ||
} | ||
} | ||
] | ||
|