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

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