Skip to content

Commit c1fc125

Browse files
author
iru
authored
ci: fix schedule conditional (#238)
1 parent d7ae5a5 commit c1fc125

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci-scheduled-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Scheduled Backend - Regresion Test
33
on:
44
schedule:
55
- cron: "0 11 * * *"
6+
workflow_dispatch:
67

78
env:
89
GO_VERSION: "^1.19" # any 1.x version, see go.mod file for minimum
@@ -38,7 +39,8 @@ jobs:
3839
SYSDIG_SECURE_API_TOKEN: ${{ secrets.KUBELAB_SECURE_API_TOKEN }}
3940

4041
slackNotification:
41-
if: failure()
42+
needs: test
43+
if: needs.test.result == 'failed'
4244
name: Slack Notification
4345
runs-on: ubuntu-latest
4446
steps:
@@ -58,4 +60,4 @@ jobs:
5860
status: ${{ job.status }}
5961
fields: repo,message,action,workflow,job,took
6062
env:
61-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
63+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)