bapaurana commited on
Commit
b01c866
·
1 Parent(s): e9dc1e7

Updated Test File v1.0

Browse files
Files changed (1) hide show
  1. .github/workflows/test.yml +2 -0
.github/workflows/test.yml CHANGED
@@ -29,6 +29,7 @@ jobs:
29
  curl -X POST -H "Content-Type: application/json" \
30
  -d "{\"content\": \"A new commit was pushed to the test branch by $GITHUB_ACTOR. But the test has failed :sad: Github Actions are fun!\\n Test results: ${{ steps.test.outcome }}\"}" \
31
  $DISCORD_WEBHOOK_URL
 
32
 
33
  - name: Send test results to Discord
34
  if: steps.test.outcome == 'success'
@@ -38,3 +39,4 @@ jobs:
38
  curl -X POST -H "Content-Type: application/json" \
39
  -d "{\"content\": \"A new commit was pushed to the test branch by $GITHUB_ACTOR. Tests have passed! :smile: Github Actions are fun!\\n Test results: ${{ steps.test.outcome }}\"}" \
40
  $DISCORD_WEBHOOK_URL
 
 
29
  curl -X POST -H "Content-Type: application/json" \
30
  -d "{\"content\": \"A new commit was pushed to the test branch by $GITHUB_ACTOR. But the test has failed :sad: Github Actions are fun!\\n Test results: ${{ steps.test.outcome }}\"}" \
31
  $DISCORD_WEBHOOK_URL
32
+ exit 1
33
 
34
  - name: Send test results to Discord
35
  if: steps.test.outcome == 'success'
 
39
  curl -X POST -H "Content-Type: application/json" \
40
  -d "{\"content\": \"A new commit was pushed to the test branch by $GITHUB_ACTOR. Tests have passed! :smile: Github Actions are fun!\\n Test results: ${{ steps.test.outcome }}\"}" \
41
  $DISCORD_WEBHOOK_URL
42
+ exit 0