Skip to content

Commit

Permalink
Cherry picked cron schedule & slack Notification (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-dedah authored Nov 4, 2021
1 parent 0c4953d commit fe4953c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: ci-workflow
on: [push]
on:
push:
schedule:
- cron: '0 */3 * * *'

jobs:
test_action_job:
Expand Down Expand Up @@ -87,3 +90,11 @@ jobs:
INPUT_DEPLOYMENTMODE: Validate
EXPECTED_TO: pass
run: ts-node test/main.tests.ts
- name: Post to slack on failure
if: failure()
uses: 8398a7/[email protected]
with:
status: ${{ job.status }}
fields: repo,message,author,action,ref,workflow
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit fe4953c

Please sign in to comment.