-
Notifications
You must be signed in to change notification settings - Fork 16
97 lines (87 loc) · 3.2 KB
/
auto-nightly-ci.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Auto Nightly CI
permissions: write-all
on:
schedule:
# each day
- cron: "0 20 * * *"
workflow_dispatch:
jobs:
call_ci_latest:
uses: ./.github/workflows/auto-pr-ci.yaml
secrets: inherit
with:
ipfamily: all
call_ci_v1_22:
# it races to upload images and artifacts when all jobs running , so just call_ci_latest build image
needs: [call_ci_latest]
uses: ./.github/workflows/auto-pr-ci.yaml
secrets: inherit
with:
kindNodeImage: kindest/node:v1.22.17
ipfamily: dual
justE2E: 'true'
call_ci_v1_23:
# it races to upload images and artifacts when all jobs running , so just call_ci_latest build image
needs: [call_ci_latest]
uses: ./.github/workflows/auto-pr-ci.yaml
secrets: inherit
with:
kindNodeImage: kindest/node:v1.23.17
ipfamily: dual
justE2E: 'true'
call_ci_v1_24:
# it races to upload images and artifacts when all jobs running , so just call_ci_latest build image
needs: [call_ci_latest]
uses: ./.github/workflows/auto-pr-ci.yaml
secrets: inherit
with:
kindNodeImage: kindest/node:v1.24.13
ipfamily: dual
justE2E: 'true'
call_ci_v1_25:
# it races to upload images and artifacts when all jobs running , so just call_ci_latest build image
needs: [call_ci_latest]
uses: ./.github/workflows/auto-pr-ci.yaml
secrets: inherit
with:
kindNodeImage: kindest/node:v1.25.9
ipfamily: dual
justE2E: 'true'
call_ci_v1_26:
# it races to upload images and artifacts when all jobs running , so just call_ci_latest build image
needs: [call_ci_latest]
uses: ./.github/workflows/auto-pr-ci.yaml
secrets: inherit
with:
kindNodeImage: kindest/node:v1.26.4
ipfamily: dual
justE2E: 'true'
call_ci_v1_27:
# it races to upload images and artifacts when all jobs running , so just call_ci_latest build image
needs: [call_ci_latest]
uses: ./.github/workflows/auto-pr-ci.yaml
secrets: inherit
with:
kindNodeImage: kindest/node:v1.27.1
ipfamily: dual
justE2E: 'true'
creat_issue:
runs-on: ubuntu-latest
needs: [call_ci_latest, call_ci_v1_22, call_ci_v1_23, call_ci_v1_24, call_ci_v1_25, call_ci_v1_26, call_ci_v1_27]
# https://docs.github.com/en/actions/learn-github-actions/contexts#jobs-context
if: ${{ always() && ( needs.call_ci_latest.result == 'failure' || needs.call_ci_v1_22.result == 'failure' || needs.call_ci_v1_23.result == 'failure' || needs.call_ci_v1_24.result == 'failure' || needs.call_ci_v1_25.result == 'failure' || needs.call_ci_v1_26.result == 'failure' || needs.call_ci_v1_27.result == 'failure' ) }}
steps:
- name: echo
run: |
echo ${{ github.repository }}
echo ${{ github.repository_owner }}
echo "TIMESTAMP=`date +%Y-%m-%d`" >> $GITHUB_ENV
- name: create an issue
uses: dacbd/[email protected]
with:
token: ${{ secrets.WELAN_PAT }}
title: "Night CI ${{ ENV.TIMESTAMP }}: Failed"
body: |
action url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
labels: "kind/ci-bug"
assignees: "weizhoublue"