-
Notifications
You must be signed in to change notification settings - Fork 20
150 lines (136 loc) · 4.76 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
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'
call_ci_v1_28:
# 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.28.0
ipfamily: dual
justE2E: 'true'
call_ci_v1_29:
# 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.29.4
ipfamily: dual
justE2E: 'true'
call_ci_v1_30:
# 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.30.0
ipfamily: dual
justE2E: 'true'
call_ci_v1_31:
# 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.31.0
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, call_ci_v1_28, call_ci_v1_29, call_ci_v1_30, call_ci_v1_31]
# 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' ||
needs.call_ci_v1_28.result == 'failure' ||
needs.call_ci_v1_29.result == 'failure' ||
needs.call_ci_v1_30.result == 'failure' ||
needs.call_ci_v1_31.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,lou-lan,bzsuni"