We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57fdef1 commit b0f91a2Copy full SHA for b0f91a2
.github/workflows/test.yml
@@ -45,9 +45,6 @@ jobs:
45
steps:
46
- uses: actions/checkout@v2
47
- 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 }}
51
with:
52
path: ./
53
config: ./.github/license-check/license-config.json
src/main.ts
@@ -27,7 +27,7 @@ async function run(): Promise<void> {
27
core.error(error.message);
28
}
29
30
- if (strictMode) {
+ if (strictMode && (errors.length !== 0 || missedFiles.length !== 0)) {
31
core.setFailed(
32
`${errors.length} error(s) and ${missedFiles.length} warning(s) found. Warnings are treated as errors.`
33
);
0 commit comments