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