@@ -22,43 +22,42 @@ jobs:
22
22
- name : Run changeset script
23
23
run : yarn ts-node-script scripts/check_changeset.ts
24
24
id : check-changeset
25
- - name : Read output
26
- run : echo "${{steps.check-changeset.outputs.MISSING_PACKAGES }}"
25
+ - name : Print changeset checker output
26
+ run : echo "${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE }}"
27
27
- name : Find Comment
28
28
uses : peter-evans/find-comment@v1
29
29
id : fc
30
30
with :
31
31
issue-number : ${{github.event.number}}
32
32
body-includes : Changeset File Check
33
33
- name : Create comment (missing packages)
34
- if : ${{!steps.fc.outputs.comment-id && steps.check-changeset.outputs.MISSING_PACKAGES }}
34
+ if : ${{!steps.fc.outputs.comment-id && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE }}
35
35
uses : peter-evans/create-or-update-comment@v1
36
36
with :
37
37
issue-number : ${{github.event.number}}
38
38
body : |
39
39
### Changeset File Check :warning:
40
- Warning: This PR modifies files in the following packages but they have not been included in the changeset file:
41
- ${{steps.check-changeset.outputs.MISSING_PACKAGES}}
42
-
43
- Make sure this was intentional.
40
+ ${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
44
41
- name : Update comment (missing packages)
45
42
if : ${{steps.fc.outputs.comment-id}}
46
43
uses : peter-evans/create-or-update-comment@v1
47
44
with :
48
- comment-id : ${{steps.fc.outputs.comment-id}} && steps.check-changeset.outputs.MISSING_PACKAGES }}
45
+ comment-id : ${{steps.fc.outputs.comment-id}} && steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE }}
49
46
edit-mode : replace
50
47
body : |
51
48
### Changeset File Check :warning:
52
- Warning: This PR modifies files in the following packages but they have not been included in the changeset file:
53
- ${{steps.check-changeset.outputs.MISSING_PACKAGES}}
54
-
55
- Make sure this was intentional.
49
+ ${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}
56
50
- name : Update comment (no missing packages)
57
- if : ${{steps.fc.outputs.comment-id && !steps.check-changeset.outputs.MISSING_PACKAGES }}
51
+ if : ${{steps.fc.outputs.comment-id && !steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE }}
58
52
uses : peter-evans/create-or-update-comment@v1
59
53
with :
60
54
comment-id : ${{steps.fc.outputs.comment-id}}
61
55
edit-mode : replace
62
56
body : |
63
57
### Changeset File Check :white_check_mark:
64
- No modified packages are missing from the changeset file.
58
+ - No modified packages are missing from the changeset file.
59
+ - No changeset formatting errors detected.
60
+ # Don't want it to throw before editing the comment.
61
+ - name : Fail if checker script logged a blocking failure
62
+ if : ${{steps.check-changeset.outputs.BLOCKING_FAILURE}}
63
+ run : exit 1
0 commit comments