mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-13 22:47:25 +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));
|
const filename = external_path_.join(__dirname, getUploaderName(platform));
|
||||||
external_https_.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
external_https_.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
||||||
const filePath = external_fs_.createWriteStream(filename);
|
const filePath = external_fs_.createWriteStream(filename);
|
||||||
res.pipe(filePath);
|
|
||||||
filePath
|
filePath
|
||||||
.on('error', (err) => {
|
.on('open', () => {
|
||||||
|
res.pipe(filePath);
|
||||||
|
}).on('error', (err) => {
|
||||||
if (external_fs_.existsSync(filename)) {
|
if (external_fs_.existsSync(filename)) {
|
||||||
core.info('IT EXISTS');
|
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) => {
|
https.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
||||||
const filePath = fs.createWriteStream(filename);
|
const filePath = fs.createWriteStream(filename);
|
||||||
res.pipe(filePath);
|
|
||||||
filePath
|
filePath
|
||||||
.on('error', (err) => {
|
.on('open', () => {
|
||||||
|
res.pipe(filePath);
|
||||||
|
}).on('error', (err) => {
|
||||||
if (fs.existsSync(filename)) {
|
if (fs.existsSync(filename)) {
|
||||||
core.info('IT EXISTS');
|
core.info('IT EXISTS');
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue