@@ -124,11 +124,11 @@ async function main() {
124
124
const errors = [ ] ;
125
125
try {
126
126
await exec ( `yarn changeset status` ) ;
127
- console . log ( ` "BLOCKING_FAILURE=false" >> $GITHUB_OUTPUT`) ;
127
+ await exec ( `echo "BLOCKING_FAILURE=false" >> $GITHUB_OUTPUT`) ;
128
128
} catch ( e ) {
129
129
const error = e as Error ;
130
130
if ( error . message . match ( 'No changesets present' ) ) {
131
- console . log ( ` "BLOCKING_FAILURE=false" >> $GITHUB_OUTPUT`) ;
131
+ await exec ( `echo "BLOCKING_FAILURE=false" >> $GITHUB_OUTPUT`) ;
132
132
} else {
133
133
const messageLines = error . message . replace ( / 🦋 e r r o r / g, '' ) . split ( '\n' ) ;
134
134
let formattedStatusError =
@@ -147,9 +147,9 @@ async function main() {
147
147
/**
148
148
* Sets Github Actions output for a step. Pass changeset error message to next
149
149
* step. See:
150
- * https://github.com/actions/toolkit/blob/master/docs/ commands.md#set-outputs
150
+ * https://docs. github.com/en/ actions/using-workflows/workflow- commands-for-github-actions#setting-an-output-parameter
151
151
*/
152
- console . log ( ` "BLOCKING_FAILURE=true" >> $GITHUB_OUTPUT`) ;
152
+ await exec ( `echo "BLOCKING_FAILURE=true" >> $GITHUB_OUTPUT`) ;
153
153
}
154
154
}
155
155
@@ -185,13 +185,13 @@ async function main() {
185
185
`- Package ${ bumpPackage } has a ${ bumpText } bump which requires an ` +
186
186
`additional line to bump the main "firebase" package to ${ bumpText } .`
187
187
) ;
188
- console . log ( ` "BLOCKING_FAILURE=true" >> $GITHUB_OUTPUT`) ;
188
+ await exec ( `echo "BLOCKING_FAILURE=true" >> $GITHUB_OUTPUT`) ;
189
189
} else if ( bumpRank [ changesetPackages [ 'firebase' ] ] < highestBump ) {
190
190
errors . push (
191
191
`- Package ${ bumpPackage } has a ${ bumpText } bump. ` +
192
192
`Increase the bump for the main "firebase" package to ${ bumpText } .`
193
193
) ;
194
- console . log ( ` "BLOCKING_FAILURE=true" >> $GITHUB_OUTPUT`) ;
194
+ await exec ( `echo "BLOCKING_FAILURE=true" >> $GITHUB_OUTPUT`) ;
195
195
}
196
196
}
197
197
}
@@ -203,11 +203,11 @@ async function main() {
203
203
/**
204
204
* Sets Github Actions output for a step. Pass changeset error message to next
205
205
* step. See:
206
- * https://github.com/actions/toolkit/blob/master/docs/ commands.md#set-outputs
206
+ * https://docs. github.com/en/ actions/using-workflows/workflow- commands-for-github-actions#setting-an-output-parameter
207
207
*/
208
208
if ( errors . length > 0 )
209
- console . log (
210
- `"CHANGESET_ERROR_MESSAGE=${ errors . join ( '%0A' ) } " >> $GITHUB_OUTPUT`
209
+ await exec (
210
+ `echo "CHANGESET_ERROR_MESSAGE=${ errors . join ( '%0A' ) } " >> $GITHUB_OUTPUT`
211
211
) ;
212
212
process . exit ( ) ;
213
213
}
0 commit comments