Skip to content

Commit

Permalink
(fix): base-file may not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassabreu committed Aug 16, 2021
1 parent 072da0c commit 7154edf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
dir-prefix: /var/www/html
file: clover.example.xml
only-with-cover: true
base-file: clover.missing.xml

- name: clover file to comment (clover.example.base.xml)
uses: ./.
Expand Down
2 changes: 2 additions & 0 deletions bin/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ const comment = async (file: string, baseFile?: string) => {
onlyWithCover
);

console.log(baseFile, existsSync(baseFile));

baseFile = undefined;

const oldStats =
baseFile &&
existsSync(baseFile) &&
Expand Down

0 comments on commit 7154edf

Please sign in to comment.