Skip to content

Commit 27cf459

Browse files
committed
add same notification to weekly action
1 parent 815233c commit 27cf459

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/production-weekly.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,19 @@ jobs:
4444

4545
- name: Update DB - test coverage
4646
run: python ./__main__.py --report-type test-case-coverage --project ALL
47+
48+
- name: Set job log URL
49+
if: always()
50+
run: echo "JOB_LOG_URL=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> $GITHUB_ENV
51+
- name: Send custom JSON data to Slack workflow
52+
if: always()
53+
id: slack
54+
uses: slackapi/[email protected]
55+
env:
56+
JOB_STATUS: ${{ job.status == 'success' && ':white_check_mark:' || job.status == 'failure' && ':x:' }}
57+
JOB_STATUS_COLOR: ${{ job.status == 'success' && '#36a64f' || job.status == 'failure' && '#FF0000' }}
58+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
59+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
60+
61+
with:
62+
payload-file-path: "./payload-slack-content.json"

0 commit comments

Comments
 (0)