mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-22 09:02:50 +00:00
Split action, step 2
This commit is contained in:
parent
9cc76cdea7
commit
e0644c97f9
5 changed files with 13 additions and 26608 deletions
|
@ -28,6 +28,8 @@ outputs:
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node12'
|
||||||
main: 'dist/main/index.js'
|
main: 'dist/main/index.js'
|
||||||
|
post: 'dist/post/index.js'
|
||||||
|
post-if: success()
|
||||||
|
|
||||||
branding:
|
branding:
|
||||||
icon: 'box'
|
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": "prettier --write **/*.ts",
|
||||||
"format-check": "prettier --check **/*.ts",
|
"format-check": "prettier --check **/*.ts",
|
||||||
"lint": "eslint src/**/*.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",
|
"test": "jest",
|
||||||
"all": "npm run build && npm run pack && npm test"
|
"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…
Reference in a new issue