diff --git a/.github/workflows/check-changeset.yml b/.github/workflows/check-changeset.yml index d8082f09804..8eb8be911c8 100644 --- a/.github/workflows/check-changeset.yml +++ b/.github/workflows/check-changeset.yml @@ -24,6 +24,8 @@ jobs: id: check-changeset - name: Print changeset checker output run: echo "${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}" + - name: Print blocking failure status + run: echo "${{steps.check-changeset.outputs.BLOCKING_FAILURE}}" - name: Find Comment uses: peter-evans/find-comment@v1 id: fc @@ -59,5 +61,5 @@ jobs: - No changeset formatting errors detected. # Don't want it to throw before editing the comment. - name: Fail if checker script logged a blocking failure - if: ${{steps.check-changeset.outputs.BLOCKING_FAILURE}} + if: ${{steps.check-changeset.outputs.BLOCKING_FAILURE == 'true'}} run: exit 1 \ No newline at end of file diff --git a/scripts/check_changeset.ts b/scripts/check_changeset.ts index 41532423f03..aa1a4e25de8 100644 --- a/scripts/check_changeset.ts +++ b/scripts/check_changeset.ts @@ -87,6 +87,7 @@ async function main() { const errors = []; try { await exec('yarn changeset status'); + console.log(`::set-output name=BLOCKING_FAILURE::false`); } catch (e) { const messageLines = e.message.replace(/🦋 error /g, '').split('\n'); let formattedStatusError =