mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-13 09:30:05 +00:00
fix: explicit w
This commit is contained in:
parent
b006eac6db
commit
0691fc76df
3 changed files with 5 additions and 4 deletions
|
|
@ -26,7 +26,7 @@ try {
|
|||
core.info(`filename: ${filename}`);
|
||||
|
||||
https.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
||||
const filePath = fs.createWriteStream(filename);
|
||||
const filePath = fs.createWriteStream(filename, {flags: 'w'});
|
||||
filePath
|
||||
.on('open', () => {
|
||||
if (fs.existsSync(filename)) {
|
||||
|
|
@ -34,7 +34,7 @@ try {
|
|||
} else {
|
||||
core.info('IT DOESNT EXIST open');
|
||||
}
|
||||
|
||||
res.pipe(filePath);
|
||||
if (fs.existsSync(filename)) {
|
||||
core.info('IT EXISTS pipe');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue