-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add nightly build and failure notification on
kedro-starters
(#218)
* 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
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
pull_request: | ||
branches: | ||
- main | ||
workflow_call: | ||
|
||
jobs: | ||
security-scan: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |