File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Check upstream
2
2
3
3
on :
4
- schedule :
5
- - cron : ' 0/5 * * * *'
4
+ # schedule:
5
+ # - cron: '0/5 * * * *'
6
+ watch :
7
+ types : [started]
6
8
7
9
jobs :
8
10
timestamp :
Original file line number Diff line number Diff line change 1
1
const tar = require ( 'tar' ) ;
2
2
const fs = require ( 'fs' ) ;
3
3
const zlib = require ( 'zlib' ) ;
4
- const TFJS_PATH = '/tmp/tfjs-node' ;
4
+ const path = require ( 'path' ) ;
5
+ const os = require ( 'os' ) ;
6
+ const TFJS_PATH = path . join ( os . tmpdir ( ) , 'tfjs-node' ) ;
5
7
6
8
// this hack is required to avoid webpack/rollup/... bundling the required path
7
9
const requireFunc =
@@ -43,7 +45,7 @@ async function createTfPromise() {
43
45
x . on ( 'finish' , resolve ) ;
44
46
x . on ( 'error' , reject ) ;
45
47
46
- fs . createReadStream ( '/tmp/ tfjs-node.br')
48
+ fs . createReadStream ( path . join ( os . tmpdir ( ) , ' tfjs-node.br') )
47
49
. pipe ( zlib . createBrotliDecompress ( ) )
48
50
. pipe ( x ) ;
49
51
} ) ;
You can’t perform that action at this time.
0 commit comments