Skip to content

Commit

Permalink
Feat: custom slack noti
Browse files Browse the repository at this point in the history
  • Loading branch information
versatile0010 committed Feb 3, 2024
1 parent 95e968b commit c0f7daf
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/jib-build-depoly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
- name: 🐧 Grant execute permission for gradlew
run: chmod +x gradlew


- name: get Current Time
run: echo "CURRENT_TIME=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV

- name: 🔔 Send Slack Message when deploy started
uses: 8398a7/action-slack@v3
with:
Expand All @@ -41,14 +45,17 @@ jobs:
{
"attachments": [
{
"color": "#36a64f",
"pretext": "대피로 백엔드 배포 시작!",
"pretext": "대피로 백엔드 배포 시작 👻",
"fields": [
{
"title": "Author",
"title": "Author 🧑‍💻",
"value": "${{ github.actor }}",
"short": true
},
{
"title": "Deploy time 🕚",
"value": "${{ env.CURRENT_TIME }}",
"short": true
]
}
]
Expand Down

0 comments on commit c0f7daf

Please sign in to comment.