fix: is writeable?

This commit is contained in:
Tom Hu 2023-11-10 11:01:24 +11:00
parent 0691fc76df
commit 90984294e9
No known key found for this signature in database
GPG key ID: 79155678363963D2
3 changed files with 7 additions and 1 deletions

3
dist/index.js vendored
View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -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) => {