diff --git a/.github/workflows/check-changeset.yml b/.github/workflows/check-changeset.yml index ca76fe7a76b..6480477e9bb 100644 --- a/.github/workflows/check-changeset.yml +++ b/.github/workflows/check-changeset.yml @@ -54,14 +54,14 @@ jobs: - name: Print blocking failure status run: echo "${{steps.check-changeset.outputs.BLOCKING_FAILURE}}" - name: Find Comment - uses: peter-evans/find-comment@v1 + uses: peter-evans/find-comment@v3 id: fc with: issue-number: ${{github.event.number}} body-includes: Changeset File Check - name: Create comment (missing packages) if: ${{!steps.fc.outputs.comment-id && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}} - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v4 with: issue-number: ${{github.event.number}} body: | @@ -69,7 +69,7 @@ jobs: ${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}} - name: Update comment (missing packages) if: ${{steps.fc.outputs.comment-id}} - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v4 with: comment-id: ${{steps.fc.outputs.comment-id}} && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}} edit-mode: replace @@ -78,7 +78,7 @@ jobs: ${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}} - name: Update comment (no missing packages) if: ${{steps.fc.outputs.comment-id && !steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}} - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v4 with: comment-id: ${{steps.fc.outputs.comment-id}} edit-mode: replace diff --git a/scripts/ci/check_changeset.ts b/scripts/ci/check_changeset.ts index 0a94fc7d3f1..960e0d2e935 100644 --- a/scripts/ci/check_changeset.ts +++ b/scripts/ci/check_changeset.ts @@ -136,7 +136,10 @@ async function main() { await exec(`echo "BLOCKING_FAILURE=false" >> $GITHUB_OUTPUT`); } catch (e) { const error = e as Error; - if (error.message.match('No changesets present')) { + if ( + error.message.match('No changesets present') || + error.message.match('no changesets were found') + ) { await exec(`echo "BLOCKING_FAILURE=false" >> $GITHUB_OUTPUT`); } else { const messageLines = error.message.replace(/🦋 error /g, '').split('\n');