Configure Gradle User Home for dependency-graph

Instead of requiring an action step to generate the graph, configure Gradle User Home
so that subsequent Gradle invocations can generate a graph. Any generated graph files
are uploaded as artifacts on job completion.

- Construct job.correlator from workflow/job/matrix
- Export job.correlator as an environment var
- Upload artifacts at job completion in post-action step
- Specify the location of dependency graph report
- Only apply dependency graph init script when explicitly enabled
This commit is contained in:
daz 2023-07-01 19:00:28 -06:00
parent a6ad1901be
commit 4c9c435d2f
No known key found for this signature in database
11 changed files with 153 additions and 65 deletions

View file

@ -58,6 +58,11 @@ inputs:
required: false
default: true
generate-dependency-graph:
description: When 'true', a dependency graph snapshot will be generated for Gradle builds.
required: false
default: false
# EXPERIMENTAL & INTERNAL ACTION INPUTS
# The following action properties allow fine-grained tweaking of the action caching behaviour.
# These properties are experimental and not (yet) designed for production use, and may change without notice in a subsequent release of `gradle-build-action`.