Skip to content

Commit

Permalink
[feature] slack 메시지 전송 임시 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun-YeoJun committed Feb 6, 2025
1 parent 04312b5 commit 4c0484f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/code_test_pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,20 @@ jobs:
if: always()
with:
files: "**/build/test-results/test/TEST-*.xml"

report-to-slack:
runs-on: ubuntu-latest
needs: [ unit-test ]
steps:
- name: Report to Slack Channel
uses: slackapi/slack-github-action@v2.0.0
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
text: "*GitHub Action build result*: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
blocks:
- type: "section"
text:
type: "mrkdwn"
text: "GitHub Action build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"

0 comments on commit 4c0484f

Please sign in to comment.