Buckets:
| const { execFileSync } = require('child_process') | |
| const path = require('path') | |
| const fs = require('fs') | |
| const isPost = !!process.env.STATE_isPost | |
| // Signal to the post phase that main ran | |
| fs.appendFileSync(process.env.GITHUB_STATE, 'isPost=true\n') | |
| const script = path.join(__dirname, isPost ? 'stop.sh' : 'start.sh') | |
| try { | |
| execFileSync('bash', [script], { stdio: 'inherit', env: process.env }) | |
| } catch (e) { | |
| if (isPost) return // don't fail the job on cleanup | |
| throw e | |
| } | |
Xet Storage Details
- Size:
- 479 Bytes
- Xet hash:
- 7da833262155eab8377b43a446b3772db670213d10a14e65a6741184e14f12c0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.