Skip to content

Commit

Permalink
[test.yml] exit 0 (successful termination) after slack failure notifi…
Browse files Browse the repository at this point in the history
…cation
  • Loading branch information
homoluctus committed Nov 20, 2019
1 parent 5cddadc commit 40d270d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
steps:
- uses: actions/checkout@master

- name: Exit 1
- name: Forced failure
run: exit 1

- name: Slack Notification
Expand All @@ -55,6 +55,12 @@ jobs:
channel: '#develop'
url: ${{ secrets.SLACK_WEBHOOK }}

- name: Check if work properly
if: sucess()
run: |
echo 'Slack notification for failure succeeded'
exit 0
cancel:
# You have to cancel this job
name: Works canceled
Expand Down

0 comments on commit 40d270d

Please sign in to comment.