Spaces:
Sleeping
Sleeping
Updated Test File v1.0
Browse files
.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
|