- Dependency graph init-script references published version of plugin jar.
- `dependency-graph-generate` action will:
- Provision Gradle if required
- Execute Gradle with dependency-graph plugin to generate graph JSON
- Upload dependency-graph JSON file as workflow artifact
- `dependency-graph-submit` action will:
- Download dependency-graph JSON artifact
- Submit the graph via the GitHub dependency submission API
17 lines
466 B
TypeScript
17 lines
466 B
TypeScript
import * as core from '@actions/core'
|
|
import * as dependencyGraph from './dependency-graph'
|
|
|
|
export async function run(): Promise<void> {
|
|
try {
|
|
// Retrieve the dependency graph artifact and submit via Dependency Submission API
|
|
await dependencyGraph.submitDependencyGraph()
|
|
} catch (error) {
|
|
core.setFailed(String(error))
|
|
if (error instanceof Error && error.stack) {
|
|
core.info(error.stack)
|
|
}
|
|
}
|
|
}
|
|
|
|
run()
|