File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 56
56
body : |
57
57
### Changeset File Check :white_check_mark:
58
58
- No modified packages are missing from the changeset file.
59
- - No changeset formatting errors detected.
59
+ - No changeset formatting errors detected.
60
+ # Don't want it to throw before editing the comment.
61
+ - name : Fail if checker script logged a blocking failure
62
+ if : ${{steps.check-changeset.outputs.BLOCKING_FAILURE}}
63
+ run : exit 1
Original file line number Diff line number Diff line change @@ -98,6 +98,12 @@ async function main() {
98
98
. filter ( ( line : string ) => ! line . includes ( 'Command failed' ) )
99
99
. filter ( ( line : string ) => ! line . includes ( 'exited with error code 1' ) )
100
100
. join ( '%0A' ) ;
101
+ /**
102
+ * Sets Github Actions output for a step. Pass changeset error message to next
103
+ * step. See:
104
+ * https://github.com/actions/toolkit/blob/master/docs/commands.md#set-outputs
105
+ */
106
+ console . log ( `::set-output name=BLOCKING_FAILURE::true` ) ;
101
107
}
102
108
try {
103
109
const diffData = await getDiffData ( ) ;
@@ -137,11 +143,7 @@ async function main() {
137
143
missingPackagesError
138
144
] . join ( '%0A' ) } `
139
145
) ;
140
- if ( formattedStatusError ) {
141
- process . exit ( 1 ) ;
142
- } else {
143
- process . exit ( ) ;
144
- }
146
+ process . exit ( ) ;
145
147
}
146
148
147
149
main ( ) ;
You can’t perform that action at this time.
0 commit comments