-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (53 loc) · 1.8 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
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_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_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_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 }}
#owner: koffloader-io
#repo: rocktemplae
title: "Night CI ${{ ENV.TIMESTAMP }}: Failed"
body: |
action url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
labels: "kind/bug"
assignees: "weizhoublue"