Try with writefilesync

This commit is contained in:
Tom Hu 2021-07-06 17:13:26 -07:00
parent 409204d0d0
commit 8fdf22d1e8
No known key found for this signature in database
GPG key ID: F7E832BD316D5603
3 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,5 @@
const fs = require('fs');
const core = require('@actions/core');
const exec = require('@actions/exec');
@ -7,6 +9,7 @@ const superagent = require('superagent');
// const {failCi} = buildExec();
console.log('oh hi');
const uploader = (async () => {
try {
return await superagent.get('https://uploader.codecov.io/latest/codecov-linux');
@ -17,4 +20,8 @@ const uploader = (async () => {
}
})();
exec.exec(uploader);
fs.writeFileSync('uploader', uploader);
console.log('Did it');
exec.exec('uploader');