@@ -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_STATE ` ) ;
127
+ console . log ( `"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_STATE ` ) ;
131
+ console . log ( `"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 =
@@ -149,7 +149,7 @@ async function main() {
149
149
* step. See:
150
150
* https://github.com/actions/toolkit/blob/master/docs/commands.md#set-outputs
151
151
*/
152
- console . log ( `"BLOCKING_FAILURE=true" >> $GITHUB_STATE ` ) ;
152
+ console . log ( `"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_STATE ` ) ;
188
+ console . log ( `"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_STATE ` ) ;
194
+ console . log ( `"BLOCKING_FAILURE=true" >> $GITHUB_OUTPUT ` ) ;
195
195
}
196
196
}
197
197
}
@@ -207,7 +207,7 @@ async function main() {
207
207
*/
208
208
if ( errors . length > 0 )
209
209
console . log (
210
- `"CHANGESET_ERROR_MESSAGE=${ errors . join ( '%0A' ) } " >> $GITHUB_STATE `
210
+ `"CHANGESET_ERROR_MESSAGE=${ errors . join ( '%0A' ) } " >> $GITHUB_OUTPUT `
211
211
) ;
212
212
process . exit ( ) ;
213
213
}
0 commit comments