Skip to content

Commit 4053c3a

Browse files
committed
chore: 🤖 trigger workflow on star
1 parent 9a3460b commit 4053c3a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/check-upstream.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Check upstream
22

33
on:
4-
schedule:
5-
- cron: '0/5 * * * *'
4+
# schedule:
5+
# - cron: '0/5 * * * *'
6+
watch:
7+
types: [started]
68

79
jobs:
810
timestamp:

index.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
const tar = require('tar');
22
const fs = require('fs');
33
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');
57

68
// this hack is required to avoid webpack/rollup/... bundling the required path
79
const requireFunc =
@@ -43,7 +45,7 @@ async function createTfPromise() {
4345
x.on('finish', resolve);
4446
x.on('error', reject);
4547

46-
fs.createReadStream('/tmp/tfjs-node.br')
48+
fs.createReadStream(path.join(os.tmpdir(), 'tfjs-node.br'))
4749
.pipe(zlib.createBrotliDecompress())
4850
.pipe(x);
4951
});

0 commit comments

Comments
 (0)