Skip to content

Commit 9f2ce14

Browse files
authored
Fix GITHUB_OUTPUT statements (#7267)
1 parent 466d367 commit 9f2ce14

File tree

2 files changed

+6
-98
lines changed

2 files changed

+6
-98
lines changed

scripts/ci/check_changeset.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ async function main() {
124124
const errors = [];
125125
try {
126126
await exec(`yarn changeset status`);
127-
console.log(`"BLOCKING_FAILURE=false" >> $GITHUB_STATE`);
127+
console.log(`"BLOCKING_FAILURE=false" >> $GITHUB_OUTPUT`);
128128
} catch (e) {
129129
const error = e as Error;
130130
if (error.message.match('No changesets present')) {
131-
console.log(`"BLOCKING_FAILURE=false" >> $GITHUB_STATE`);
131+
console.log(`"BLOCKING_FAILURE=false" >> $GITHUB_OUTPUT`);
132132
} else {
133133
const messageLines = error.message.replace(/🦋 error /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(`"BLOCKING_FAILURE=true" >> $GITHUB_STATE`);
152+
console.log(`"BLOCKING_FAILURE=true" >> $GITHUB_OUTPUT`);
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(`"BLOCKING_FAILURE=true" >> $GITHUB_STATE`);
188+
console.log(`"BLOCKING_FAILURE=true" >> $GITHUB_OUTPUT`);
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(`"BLOCKING_FAILURE=true" >> $GITHUB_STATE`);
194+
console.log(`"BLOCKING_FAILURE=true" >> $GITHUB_OUTPUT`);
195195
}
196196
}
197197
}
@@ -207,7 +207,7 @@ async function main() {
207207
*/
208208
if (errors.length > 0)
209209
console.log(
210-
`"CHANGESET_ERROR_MESSAGE=${errors.join('%0A')}" >> $GITHUB_STATE`
210+
`"CHANGESET_ERROR_MESSAGE=${errors.join('%0A')}" >> $GITHUB_OUTPUT`
211211
);
212212
process.exit();
213213
}

scripts/ci/detect-doc-changes.ts

Lines changed: 0 additions & 92 deletions
This file was deleted.

0 commit comments

Comments
 (0)