mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-04-05 04:44:16 +02:00
Compare commits
7 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
093dfe9d59 | ||
![]() |
b579b5c6ad | ||
![]() |
ac2d340dc0 | ||
![]() |
66535aaf56 | ||
![]() |
04b20c065c | ||
![]() |
db35f23046 | ||
![]() |
4c39dd82cd |
2 changed files with 71 additions and 13 deletions
|
@ -14,9 +14,9 @@
|
|||
>
|
||||
> See the [setup-gradle documentation](https://github.com/gradle/actions/tree/main/setup-gradle) for up-to-date documentation for `gradle/actions/setup-gradle`.
|
||||
|
||||
# Execute Gradle builds in GitHub Actions workflows
|
||||
# Setup Gradle for use in GitHub Actions workflows
|
||||
|
||||
This GitHub Action can be used to configure Gradle and optionally execute a Gradle build on any platform supported by GitHub Actions.
|
||||
This GitHub Action can be used to configure Gradle on any platform supported by GitHub Actions.
|
||||
|
||||
## Example usage
|
||||
|
||||
|
@ -32,12 +32,9 @@ jobs:
|
|||
- name: Checkout sources
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Gradle
|
||||
uses: gradle/gradle-build-action@v3
|
||||
uses: gradle/actions/setup-gradle@v3
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew build
|
||||
```
|
||||
|
||||
As of `v3`, the `gradle/gradle-build-action` action delegates to `gradle/actions/setup-gradle` with the same version.
|
||||
Configuration and usage of these actions is identical for releases with the same version number.
|
||||
|
||||
See the [full setup-gradle documentation](https://github.com/gradle/actions/tree/main/setup-gradle) for more advanced usage scenarios.
|
||||
|
|
65
action.yml
65
action.yml
|
@ -1,4 +1,4 @@
|
|||
name: "Gradle Build Action"
|
||||
name: setup-gradle
|
||||
description: 'Configures Gradle for GitHub actions, caching state and generating a dependency graph via Dependency Submission.'
|
||||
|
||||
inputs:
|
||||
|
@ -100,6 +100,54 @@ inputs:
|
|||
description: Indicate that you agree to the Build Scan® terms of use. This input value must be "yes".
|
||||
required: false
|
||||
|
||||
develocity-access-key:
|
||||
description: Develocity access key. Should be set to a secret containing the Develocity Access key.
|
||||
required: false
|
||||
|
||||
develocity-token-expiry:
|
||||
description: The Develocity short-lived access tokens expiry in hours. Default is 2 hours.
|
||||
required: false
|
||||
|
||||
develocity-injection-enabled:
|
||||
description: Enables Develocity injection.
|
||||
required: false
|
||||
|
||||
develocity-url:
|
||||
description: The URL for the Develocity server.
|
||||
required: false
|
||||
|
||||
develocity-allow-untrusted-server:
|
||||
description: Allow communication with an untrusted server; set to _true_ if your Develocity instance is using a self-signed.
|
||||
required: false
|
||||
|
||||
develocity-capture-file-fingerprints:
|
||||
description: Enables capturing the paths and content hashes of each individual input file.
|
||||
required: false
|
||||
|
||||
develocity-enforce-url:
|
||||
description: Enforce the configured Develocity URL over a URL configured in the project's build; set to _true_ to enforce publication of build scans to the configured Develocity URL.
|
||||
required: false
|
||||
|
||||
develocity-plugin-version:
|
||||
description: The version of the Develocity Gradle plugin to apply.
|
||||
required: false
|
||||
|
||||
develocity-ccud-plugin-version:
|
||||
description: The version of the Common Custom User Data Gradle plugin to apply, if any.
|
||||
required: false
|
||||
|
||||
gradle-plugin-repository-url:
|
||||
description: The URL of the repository to use when resolving the Develocity and CCUD plugins; the Gradle Plugin Portal is used by default.
|
||||
required: false
|
||||
|
||||
gradle-plugin-repository-username:
|
||||
description: The username for the repository URL to use when resolving the Develocity and CCUD.
|
||||
required: false
|
||||
|
||||
gradle-plugin-repository-password:
|
||||
description: The password for the repository URL to use when resolving the Develocity and CCUD plugins; Consider using secrets to pass the value to this variable.
|
||||
required: false
|
||||
|
||||
# Wrapper validation configuration
|
||||
validate-wrappers:
|
||||
description: |
|
||||
|
@ -172,7 +220,7 @@ runs:
|
|||
steps:
|
||||
- name: Setup Gradle
|
||||
id: setup-gradle
|
||||
uses: gradle/actions/setup-gradle@v3.3.1
|
||||
uses: gradle/actions/setup-gradle@v3.5.0
|
||||
with:
|
||||
gradle-version: ${{ inputs.gradle-version }}
|
||||
cache-disabled: ${{ inputs.cache-disabled }}
|
||||
|
@ -200,6 +248,19 @@ runs:
|
|||
gradle-home-cache-strict-match: ${{ inputs.gradle-home-cache-strict-match }}
|
||||
workflow-job-context: ${{ inputs.workflow-job-context }}
|
||||
github-token: ${{ inputs.github-token }}
|
||||
develocity-access-key: ${{ inputs.develocity-access-key }}
|
||||
develocity-token-expiry: ${{ inputs.develocity-token-expiry }}
|
||||
develocity-injection-enabled: ${{ inputs.develocity-injection-enabled }}
|
||||
develocity-url: ${{ inputs.develocity-url }}
|
||||
develocity-allow-untrusted-server: ${{ inputs.develocity-allow-untrusted-server }}
|
||||
develocity-capture-file-fingerprints: ${{ inputs.develocity-capture-file-fingerprints }}
|
||||
develocity-enforce-url: ${{ inputs.develocity-enforce-url }}
|
||||
develocity-plugin-version: ${{ inputs.develocity-plugin-version }}
|
||||
develocity-ccud-plugin-version: ${{ inputs.develocity-ccud-plugin-version }}
|
||||
gradle-plugin-repository-url: ${{ inputs.gradle-plugin-repository-url }}
|
||||
gradle-plugin-repository-username: ${{ inputs.gradle-plugin-repository-username }}
|
||||
gradle-plugin-repository-password: ${{ inputs.gradle-plugin-repository-password }}
|
||||
|
||||
env:
|
||||
GRADLE_ACTION_ID: gradle/gradle-build-action
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue