Skip to content

Commit

Permalink
chore: 배포 스크립트 문법 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
amaran-th committed Jul 21, 2023
1 parent 32379e2 commit 1c12b45
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/backend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,36 @@ jobs:
steps:
- name: deploy
run: ~/deploy.sh
- uses: 8398a7/action-slack@v3
- name: send slack message
uses: 8398a7/action-slack@v3
with:
status: custom
fields: workflow,job,commit,repo,ref,author,took
custom_payload: |
{
attachments: [{
color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning',
title: '개발 서버 자동 배포 결과'
text: '${{ job.status }}'
title: '개발 서버 자동 배포 결과',
text: '${{ job.status }}',
fields: [{
title: 'repo'
value:
title: 'repo',
value: '${process.env.AS_MESSAGE}',
short: true
},{
title: '커밋 메세지'
value: '${process.env.AS_MESSAGE}'
title: '커밋 메세지',
value: '${process.env.AS_MESSAGE}',
short: true
},{
title: '소요 시간'
value: '${process.env.AS_TOOK}'
title: '소요 시간',
value: '${process.env.AS_TOOK}',
short: true
},{
title: '실행한 사람'
value: '${process.env.AS_AUTHOR}'
title: '실행한 사람',
value: '${process.env.AS_AUTHOR}',
short: false
},
}]
}
}]
}]
}
env:
SLACK_WEBHOOK_URLS: ${{ secrets.SLACK_WEBHOOK_URL }}
if: always() # Pick up events even if the job fails or is canceled.

0 comments on commit 1c12b45

Please sign in to comment.