mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-22 08:11:07 -05:00
Document artifact-retention-days
This commit is contained in:
parent
beff1c573c
commit
375481748b
1 changed files with 15 additions and 0 deletions
15
README.md
15
README.md
|
@ -809,6 +809,21 @@ limited to Gradle "8.1.0" and later:
|
||||||
To use this plugin with versions of Gradle older than "8.1.0", you'll need to invoke Gradle with the
|
To use this plugin with versions of Gradle older than "8.1.0", you'll need to invoke Gradle with the
|
||||||
configuration-cache disabled.
|
configuration-cache disabled.
|
||||||
|
|
||||||
|
## Reducing storage costs for saved dependency graph artifacts
|
||||||
|
|
||||||
|
When `generate` or `generate-and-submit` is used with the action, the dependency graph that is generated is stored as a workflow artifact.
|
||||||
|
By default, these artifacts are retained for a period of 30 days (or as configured for the repository).
|
||||||
|
To reduce storage costs for these artifacts, you can set the `artifact-retention-days` value to a lower number.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- name: Generate dependency graph, but only retain artifact for one day
|
||||||
|
uses: gradle/gradle-build-action@v2
|
||||||
|
with:
|
||||||
|
dependency-graph: generate
|
||||||
|
artifact-retention-days: 1
|
||||||
|
```
|
||||||
|
|
||||||
# Gradle Enterprise plugin injection
|
# Gradle Enterprise plugin injection
|
||||||
|
|
||||||
The `gradle-build-action` provides support for injecting and configuring the Gradle Enterprise Gradle plugin into any Gradle build, without any modification to the project sources.
|
The `gradle-build-action` provides support for injecting and configuring the Gradle Enterprise Gradle plugin into any Gradle build, without any modification to the project sources.
|
||||||
|
|
Loading…
Reference in a new issue