Skip to content

Commit 6266124

Browse files
authored
Fix changeset checker (#8392)
1 parent b9244a5 commit 6266124

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/check-changeset.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,22 @@ jobs:
5454
- name: Print blocking failure status
5555
run: echo "${{steps.check-changeset.outputs.BLOCKING_FAILURE}}"
5656
- name: Find Comment
57-
uses: peter-evans/find-comment@v1
57+
uses: peter-evans/find-comment@v3
5858
id: fc
5959
with:
6060
issue-number: ${{github.event.number}}
6161
body-includes: Changeset File Check
6262
- name: Create comment (missing packages)
6363
if: ${{!steps.fc.outputs.comment-id && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
64-
uses: peter-evans/create-or-update-comment@v1
64+
uses: peter-evans/create-or-update-comment@v4
6565
with:
6666
issue-number: ${{github.event.number}}
6767
body: |
6868
### Changeset File Check :warning:
6969
${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
7070
- name: Update comment (missing packages)
7171
if: ${{steps.fc.outputs.comment-id}}
72-
uses: peter-evans/create-or-update-comment@v1
72+
uses: peter-evans/create-or-update-comment@v4
7373
with:
7474
comment-id: ${{steps.fc.outputs.comment-id}} && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
7575
edit-mode: replace
@@ -78,7 +78,7 @@ jobs:
7878
${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
7979
- name: Update comment (no missing packages)
8080
if: ${{steps.fc.outputs.comment-id && !steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
81-
uses: peter-evans/create-or-update-comment@v1
81+
uses: peter-evans/create-or-update-comment@v4
8282
with:
8383
comment-id: ${{steps.fc.outputs.comment-id}}
8484
edit-mode: replace

scripts/ci/check_changeset.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ async function main() {
136136
await exec(`echo "BLOCKING_FAILURE=false" >> $GITHUB_OUTPUT`);
137137
} catch (e) {
138138
const error = e as Error;
139-
if (error.message.match('No changesets present')) {
139+
if (
140+
error.message.match('No changesets present') ||
141+
error.message.match('no changesets were found')
142+
) {
140143
await exec(`echo "BLOCKING_FAILURE=false" >> $GITHUB_OUTPUT`);
141144
} else {
142145
const messageLines = error.message.replace(/🦋 error /g, '').split('\n');

0 commit comments

Comments
 (0)