mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-09 20:47:26 +00:00
fix: explicit w
This commit is contained in:
parent
b006eac6db
commit
0691fc76df
3 changed files with 5 additions and 4 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
|
@ -24598,7 +24598,7 @@ try {
|
||||||
const filename = external_path_.join(__dirname, getUploaderName(platform));
|
const filename = external_path_.join(__dirname, getUploaderName(platform));
|
||||||
core.info(`filename: ${filename}`);
|
core.info(`filename: ${filename}`);
|
||||||
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, { flags: 'w' });
|
||||||
filePath
|
filePath
|
||||||
.on('open', () => {
|
.on('open', () => {
|
||||||
if (external_fs_.existsSync(filename)) {
|
if (external_fs_.existsSync(filename)) {
|
||||||
|
|
@ -24607,6 +24607,7 @@ try {
|
||||||
else {
|
else {
|
||||||
core.info('IT DOESNT EXIST open');
|
core.info('IT DOESNT EXIST open');
|
||||||
}
|
}
|
||||||
|
res.pipe(filePath);
|
||||||
if (external_fs_.existsSync(filename)) {
|
if (external_fs_.existsSync(filename)) {
|
||||||
core.info('IT EXISTS pipe');
|
core.info('IT EXISTS pipe');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -26,7 +26,7 @@ try {
|
||||||
core.info(`filename: ${filename}`);
|
core.info(`filename: ${filename}`);
|
||||||
|
|
||||||
https.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
https.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
||||||
const filePath = fs.createWriteStream(filename);
|
const filePath = fs.createWriteStream(filename, {flags: 'w'});
|
||||||
filePath
|
filePath
|
||||||
.on('open', () => {
|
.on('open', () => {
|
||||||
if (fs.existsSync(filename)) {
|
if (fs.existsSync(filename)) {
|
||||||
|
|
@ -34,7 +34,7 @@ try {
|
||||||
} else {
|
} else {
|
||||||
core.info('IT DOESNT EXIST open');
|
core.info('IT DOESNT EXIST open');
|
||||||
}
|
}
|
||||||
|
res.pipe(filePath);
|
||||||
if (fs.existsSync(filename)) {
|
if (fs.existsSync(filename)) {
|
||||||
core.info('IT EXISTS pipe');
|
core.info('IT EXISTS pipe');
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue