7
7
required : true
8
8
type : string
9
9
outputs :
10
+ fatal :
11
+ value : ${{ jobs.checks.outputs.fatal}}
10
12
fail :
11
13
value : ${{ jobs.checks.outputs.fail }}
12
14
warn :
19
21
continue-on-error : true
20
22
21
23
outputs :
24
+ fatal : ${{ steps.assert.outputs.fatal }}
22
25
fail : ${{ steps.assert.outputs.fail }}
23
26
warn : ${{ steps.assert.outputs.warn }}
24
27
@@ -30,20 +33,21 @@ jobs:
30
33
source ci/build.sh
31
34
apply_prerun
32
35
33
- - name : Cancel steps
36
+ - name : Assert state
34
37
if : ${{ failure() }}
35
- run : >
36
- echo "::error ::ci: Cannot proceed at this condition, the workflow will be cancelled."
37
- "FATAL=true" >> "$GITHUB_ENV"
38
+ run : |
39
+ source ci/build.sh
40
+ set_step_fail "assert_state"
41
+ "fatal=true" >> "$GITHUB_ENV"
38
42
39
43
- name : License
40
- if : ${{ !cancelled() && env.FATAL != 'true' }}
44
+ if : ${{ !cancelled() && env.fatal != 'true' }}
41
45
run : |
42
46
source ci/build.sh
43
47
check_license
44
48
45
49
- name : Check patch
46
- if : ${{ !cancelled() && env.FATAL != 'true' }}
50
+ if : ${{ !cancelled() && env.fatal != 'true' }}
47
51
run : |
48
52
source ci/build.sh
49
53
export -f check_checkpatch set_step_fail set_step_warn
52
56
exit $status
53
57
54
58
- name : Coccicheck
55
- if : ${{ !cancelled() && env.FATAL != 'true' }}
59
+ if : ${{ !cancelled() && env.fatal != 'true' }}
56
60
run : |
57
61
source ci/build.sh
58
62
export -f check_coccicheck set_step_fail set_step_warn
@@ -61,13 +65,13 @@ jobs:
61
65
exit $status
62
66
63
67
- name : CPP Check
64
- if : ${{ !cancelled() && env.FATAL != 'true' }}
68
+ if : ${{ !cancelled() && env.fatal != 'true' }}
65
69
run : |
66
70
source ci/build.sh
67
71
check_cppcheck
68
72
69
73
- name : Checkout and patch reference branch
70
- if : ${{ !cancelled() && env.FATAL != 'true' && !startsWith(github.base_ref, 'mirror/') && !startsWith(github.ref_name, 'mirror/') }}
74
+ if : ${{ !cancelled() && env.fatal != 'true' && !startsWith(github.base_ref, 'mirror/') && !startsWith(github.ref_name, 'mirror/') }}
71
75
run : |
72
76
git fetch origin --depth=1 "${{ inputs.ref_branch }}" &&
73
77
git reset --hard origin/${{ inputs.ref_branch }} ||
@@ -103,20 +107,21 @@ jobs:
103
107
done <<< "$files"
104
108
105
109
- name : Check dt-bindings
106
- if : ${{ !cancelled() && env.FATAL != 'true' }}
110
+ if : ${{ !cancelled() && env.fatal != 'true' }}
107
111
run : |
108
112
source ci/build.sh
109
113
check_dt_binding_check
110
114
111
115
- name : Revert patch reference branch
112
- if : ${{ !cancelled() && env.FATAL != 'true' && !startsWith(github.base_ref, 'mirror/') && !startsWith(github.ref_name, 'mirror/') }}
116
+ if : ${{ !cancelled() && env.fatal != 'true' && !startsWith(github.base_ref, 'mirror/') && !startsWith(github.ref_name, 'mirror/') }}
113
117
run : |
114
118
git reset --hard $head_sha
115
119
116
- - name : Assert checks
120
+ - name : Export labels
117
121
if : ${{ !cancelled() }}
118
122
id : assert
119
123
run : |
120
- echo "warn=$(printenv | grep ^step_warn_ | grep -v =$ | tr '\n' ',' | sed 's/,$//')" >> "$GITHUB_OUTPUT"
121
- echo "fail=$(printenv | grep ^step_fail_ | grep -v =$ | tr '\n' ',' | sed 's/,$//')" >> "$GITHUB_OUTPUT"
124
+ echo "fatal=$fatal" >> "$GITHUB_OUTPUT"
125
+ source ci/runner_env.sh
126
+ export_labels
122
127
0 commit comments