-
Notifications
You must be signed in to change notification settings - Fork 0
160 lines (125 loc) · 4.64 KB
/
generate_examples.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
151
152
153
154
155
156
157
158
159
160
name: Generate examples
on:
push:
jobs:
generate_microprint_mid_job:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get microprint of jobs logs
uses: ./
with:
log_path: ./Examples/Mid-job
microprint_path: ./Examples/Mid-job
- name: Commit microprint
uses: EndBug/add-and-commit@v9
with:
message: Updated custom rules microprint
pull: '--rebase --autostash'
generate_microprint_mid_job_matrix:
runs-on: ubuntu-latest
needs: generate_microprint_mid_job
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [1.6]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get microprint of jobs logs
uses: ./
with:
log_path: ./Examples/Mid-job-matrix/
microprint_path: ./Examples/Mid-job-matrix/
microprint_visualizer_link_path: ./Examples/Mid-job-matrix/
- name: Commit microprint
uses: EndBug/add-and-commit@v9
with:
message: Updated custom rules microprint
pull: '--rebase --autostash'
generate_microprint_matrix:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: [1.6]
needs: generate_microprint_mid_job_matrix
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get microprint of jobs logs
uses: ./
with:
job_name: generate_microprint_mid_job_matrix
log_path: ./Examples/Matrix/
microprint_path: ./Examples/Matrix/
microprint_visualizer_link_path: ./Examples/Matrix/
- name: Commit microprint
uses: EndBug/add-and-commit@v9
with:
message: Updated custom rules microprint
pull: '--rebase --autostash'
generate_microprint_of_first_job_with_custom_rules:
runs-on: ubuntu-latest
# If the job doesn't finish first, the logs won't be complete.
needs: generate_microprint_matrix
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get microprint of jobs logs
uses: ./
with:
job_name: generate_microprint_mid_job
github_token: ${{ secrets.pat }}
log_filename: custom_log_name
log_path: ./Examples/With-custom-rules
microprint_filename: custom_microprint_name
microprint_path: ./Examples/With-custom-rules
microprint_config_path: ./Examples/With-custom-rules/
microprint_config_filename: custom_config_name
microprint_visualizer_link_filename: custom_visualizer_link_name
microprint_visualizer_link_path: ./Examples/With-custom-rules
- name: Commit microprint
uses: EndBug/add-and-commit@v9
with:
message: Updated custom rules microprint
pull: '--rebase --autostash'
generate_microprint_with_default_rules:
runs-on: ubuntu-latest
needs: generate_microprint_of_first_job_with_custom_rules
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get microprint of jobs logs
uses: ./
with:
job_name: generate_microprint_mid_job
log_path: ./Examples/With-default-rules
microprint_path: ./Examples/With-default-rules
microprint_config_path: ./Examples/With-default-rules/
microprint_visualizer_link_path: ./Examples/With-default-rules
- name: Commit microprint
uses: EndBug/add-and-commit@v9
with:
message: Updated custom rules microprint
pull: '--rebase --autostash'
generate_microprint_with_multiple_columns:
runs-on: ubuntu-latest
needs: generate_microprint_with_default_rules
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Get microprint of jobs logs
uses: ./
with:
job_name: generate_microprint_mid_job
log_path: ./Examples/With-multiple-columns
microprint_path: ./Examples/With-multiple-columns
microprint_visualizer_link_path: ./Examples/With-multiple-columns
microprint_config_path: ./Examples/With-multiple-columns/
- name: Commit microprint
uses: EndBug/add-and-commit@v9
with:
message: Updated custom rules microprint
pull: '--rebase --autostash'