@@ -124,11 +124,11 @@ async function main() {
124124 const errors = [ ] ;
125125 try {
126126 await exec ( `yarn changeset status` ) ;
127- console . log ( `::set-output name= BLOCKING_FAILURE:: false` ) ;
127+ console . log ( `" BLOCKING_FAILURE= false" >> $GITHUB_STATE ` ) ;
128128 } catch ( e ) {
129129 const error = e as Error ;
130130 if ( error . message . match ( 'No changesets present' ) ) {
131- console . log ( `::set-output name= BLOCKING_FAILURE:: false` ) ;
131+ console . log ( `" BLOCKING_FAILURE= false" >> $GITHUB_STATE ` ) ;
132132 } else {
133133 const messageLines = error . message . replace ( / 🦋 e r r o r / g, '' ) . split ( '\n' ) ;
134134 let formattedStatusError =
@@ -149,7 +149,7 @@ async function main() {
149149 * step. See:
150150 * https://github.com/actions/toolkit/blob/master/docs/commands.md#set-outputs
151151 */
152- console . log ( `::set-output name= BLOCKING_FAILURE:: true` ) ;
152+ console . log ( `" BLOCKING_FAILURE= true" >> $GITHUB_STATE ` ) ;
153153 }
154154 }
155155
@@ -185,13 +185,13 @@ async function main() {
185185 `- Package ${ bumpPackage } has a ${ bumpText } bump which requires an ` +
186186 `additional line to bump the main "firebase" package to ${ bumpText } .`
187187 ) ;
188- console . log ( `::set-output name= BLOCKING_FAILURE:: true` ) ;
188+ console . log ( `" BLOCKING_FAILURE= true" >> $GITHUB_STATE ` ) ;
189189 } else if ( bumpRank [ changesetPackages [ 'firebase' ] ] < highestBump ) {
190190 errors . push (
191191 `- Package ${ bumpPackage } has a ${ bumpText } bump. ` +
192192 `Increase the bump for the main "firebase" package to ${ bumpText } .`
193193 ) ;
194- console . log ( `::set-output name= BLOCKING_FAILURE:: true` ) ;
194+ console . log ( `" BLOCKING_FAILURE= true" >> $GITHUB_STATE ` ) ;
195195 }
196196 }
197197 }
@@ -207,7 +207,7 @@ async function main() {
207207 */
208208 if ( errors . length > 0 )
209209 console . log (
210- `::set-output name= CHANGESET_ERROR_MESSAGE:: ${ errors . join ( '%0A' ) } `
210+ `" CHANGESET_ERROR_MESSAGE= ${ errors . join ( '%0A' ) } " >> $GITHUB_STATE `
211211 ) ;
212212 process . exit ( ) ;
213213}
0 commit comments