mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 01:46:18 +08:00
Split action, step 2
This commit is contained in:
parent
9cc76cdea7
commit
e0644c97f9
@ -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
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
1
dist/post/index.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -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
8
src/post.ts
Normal 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();
|
Loading…
x
Reference in New Issue
Block a user