Skip to content

Commit

Permalink
Add nightly build workflow and create an issue if it fails (#3032)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankatiyar authored Sep 19, 2023
1 parent df4a222 commit 4d186ef
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/all-checks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Run all checks on Kedro

on:
workflow_call:
push:
branches:
- main
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Run nightly tests on Kedro

on:
workflow_dispatch:
schedule:
# Run every day at midnight (UTC time)
- cron: '0 0 * * *'

jobs:
kedro-test:
uses: ./.github/workflows/all-checks.yml

notify-kedro:
permissions:
issues: write
name: Notify failed build for kedro
needs: kedro-test
if: ${{ !success() }}
runs-on: ubuntu-latest
steps:
- uses: jayqi/failed-build-issue-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
label-name: "nightly build"
title-template: "ci: Nightly build failure"
body-template: |
GitHub Actions workflow [{{workflow}} #{{runNumber}}](https://github.com/{{repo.owner}}/{{repo.repo}}/actions/runs/{{runId}}) failed.
create-label: true
always-create-new-issue: false

0 comments on commit 4d186ef

Please sign in to comment.