mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-09 20:47:26 +00:00
fix: is writeable?
This commit is contained in:
parent
0691fc76df
commit
90984294e9
3 changed files with 7 additions and 1 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
|
@ -24596,6 +24596,9 @@ try {
|
|||
const { execArgs, options, failCi, os, uploaderVersion, verbose } = src_buildExec();
|
||||
const platform = getPlatform(os);
|
||||
const filename = external_path_.join(__dirname, getUploaderName(platform));
|
||||
external_fs_.access(filename, external_fs_.constants.W_OK, (err) => {
|
||||
core.info(`${filename} ${err ? 'is not writable' : 'is writable'}`);
|
||||
});
|
||||
core.info(`filename: ${filename}`);
|
||||
external_https_.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
||||
const filePath = external_fs_.createWriteStream(filename, { flags: 'w' });
|
||||
|
|
|
|||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -23,6 +23,9 @@ try {
|
|||
const platform = getPlatform(os);
|
||||
|
||||
const filename = path.join( __dirname, getUploaderName(platform));
|
||||
fs.access(filename, fs.constants.W_OK, (err) => {
|
||||
core.info(`${filename} ${err ? 'is not writable' : 'is writable'}`);
|
||||
});
|
||||
core.info(`filename: ${filename}`);
|
||||
|
||||
https.get(getBaseUrl(platform, uploaderVersion), (res) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue