Split action, step 2

This commit is contained in:
Paul Merlin 2020-06-13 13:34:07 +02:00
parent 9cc76cdea7
commit e0644c97f9
5 changed files with 13 additions and 26608 deletions

View File

@ -28,6 +28,8 @@ outputs:
runs:
using: 'node12'
main: 'dist/main/index.js'
post: 'dist/post/index.js'
post-if: success()
branding:
icon: 'box'

26608
dist/main/index.js vendored

File diff suppressed because one or more lines are too long

1
dist/post/index.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"lint": "eslint src/**/*.ts",
"pack": "ncc build src/main.ts --out dist/main",
"pack": "ncc build src/main.ts --out dist/main --minify && ncc build src/post.ts --out dist/post --minify",
"test": "jest",
"all": "npm run build && npm run pack && npm test"
},

8
src/post.ts Normal file
View File

@ -0,0 +1,8 @@
import * as core from "@actions/core";
// Invoked by GitHub Actions
export async function run() {
core.debug("POST Gradle Command Action")
}
run();