Skip to content
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.

Commit

Permalink
[auto]
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed May 12, 2020
1 parent c54407b commit 2d543d3
Show file tree
Hide file tree
Showing 11 changed files with 28,569 additions and 580 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/bundle.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

22 changes: 0 additions & 22 deletions LICENSE

This file was deleted.

24 changes: 0 additions & 24 deletions README.md

This file was deleted.

3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ output:
description: Webhook result
runs:
using: node12
main: index.js

main: dist/index.js
6 changes: 6 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const { readFileSync, writeFileSync } = require('fs'), { Script } = require('vm'), { wrap } = require('module');
const source = readFileSync(__dirname + '/index.js.cache.js', 'utf-8');
const cachedData = !process.pkg && require('process').platform !== 'win32' && readFileSync(__dirname + '/index.js.cache');
const script = new Script(wrap(source), cachedData ? { cachedData } : {});
(script.runInThisContext())(exports, require, module, __filename, __dirname);
if (cachedData) process.on('exit', () => { try { writeFileSync(__dirname + '/index.js.cache', script.createCachedData()); } catch(e) {} });
Binary file added dist/index.js.cache
Binary file not shown.
Loading

0 comments on commit 2d543d3

Please sign in to comment.