mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-09 20:47:26 +00:00
fix: on open
This commit is contained in:
parent
96c10b3f72
commit
fc784079cb
3 changed files with 7 additions and 5 deletions
5
dist/index.js
vendored
5
dist/index.js
vendored
|
|
@ -24598,9 +24598,10 @@ try {
|
|||
const filename = external_path_.join(__dirname, getUploaderName(platform));
|
||||
external_https_.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
||||
const filePath = external_fs_.createWriteStream(filename);
|
||||
res.pipe(filePath);
|
||||
filePath
|
||||
.on('error', (err) => {
|
||||
.on('open', () => {
|
||||
res.pipe(filePath);
|
||||
}).on('error', (err) => {
|
||||
if (external_fs_.existsSync(filename)) {
|
||||
core.info('IT EXISTS');
|
||||
}
|
||||
|
|
|
|||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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…
Reference in a new issue