mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-12 17:10:05 +00:00
Try with writefilesync
This commit is contained in:
parent
409204d0d0
commit
8fdf22d1e8
3 changed files with 14 additions and 3 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue