Skip to content

Commit b0f91a2

Browse files
committed
fixes error reporting for GitHub actions
1 parent 57fdef1 commit b0f91a2

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ jobs:
4545
steps:
4646
- uses: actions/checkout@v2
4747
- uses: ./
48-
env:
49-
# This token is provided by Actions, you do not need to create your own token
50-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5148
with:
5249
path: ./
5350
config: ./.github/license-check/license-config.json

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function run(): Promise<void> {
2727
core.error(error.message);
2828
}
2929

30-
if (strictMode) {
30+
if (strictMode && (errors.length !== 0 || missedFiles.length !== 0)) {
3131
core.setFailed(
3232
`${errors.length} error(s) and ${missedFiles.length} warning(s) found. Warnings are treated as errors.`
3333
);

0 commit comments

Comments
 (0)