Skip to content

Commit

Permalink
Add nightly build and failure notification on kedro-starters (#218)
Browse files Browse the repository at this point in the history
* Add nightly build and failure notification

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Update the issue name and label

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

* Update .github/workflows/all-checks.yml

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>

---------

Signed-off-by: Ankita Katiyar <ankitakatiyar2401@gmail.com>
  • Loading branch information
ankatiyar authored Apr 22, 2024
1 parent 580f7f0 commit d427cc8
Show file tree
Hide file tree
Showing 2 changed files with 28 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
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- main
workflow_call:

jobs:
security-scan:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
workflow_dispatch:
schedule:
# Run every day at midnight (UTC time)
- cron: '0 0 * * *'

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

notify-failed-build:
permissions:
issues: write
name: Notify failed build for Starters
needs: starters-test
if: ${{ !success() }}
runs-on: ubuntu-latest
steps:
- uses: jayqi/failed-build-issue-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
label-name: "starters nightly build"
title-template: "`kedro-starters`: 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 d427cc8

Please sign in to comment.