-
Notifications
You must be signed in to change notification settings - Fork 904
54 lines (49 loc) · 1.62 KB
/
nightly-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Run nightly tests on Kedro
on:
workflow_dispatch:
schedule:
# Run every day at midnight (UTC time)
- cron: '0 0 * * *'
jobs:
kedro-main-test:
uses: ./.github/workflows/all-checks.yml
with:
branch: main
kedro-develop-test:
uses: ./.github/workflows/all-checks.yml
with:
branch: develop
notify-main:
permissions:
issues: write
name: Notify failed build for kedro-main
needs: kedro-main-test
if: ${{ !success() }}
runs-on: ubuntu-latest
steps:
- uses: jayqi/failed-build-issue-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
label-name: "main nightly build"
title-template: "ci: Nightly build failure on `main`"
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
notify-develop:
permissions:
issues: write
name: Notify failed build for kedro-develop
needs: kedro-develop-test
if: ${{ !success() }}
runs-on: ubuntu-latest
steps:
- uses: jayqi/failed-build-issue-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
label-name: "develop nightly build"
title-template: "ci: Nightly build failure on `develop`"
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