Skip to content

Commit

Permalink
chore(github): add notification to Slack for failed job
Browse files Browse the repository at this point in the history
  • Loading branch information
devlegacy committed Jul 30, 2024
1 parent 8e2ab70 commit 3400018
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
run: echo "Using Node.js ${{ matrix.node-version }} ${{github.workflow}} ${{github.event_name}} ${{github.actor}}"

- name: more and mode
env:
env:
JOB_CONTEXT: ${{toJson(job)}}
# status to this point
run: |
echo "Job context: ${JOB_CONTEXT}"
echo "Done!!!"
# JOB_CONTEXT.status === 'fail', send notification to slack

0 comments on commit 3400018

Please sign in to comment.