mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-04-04 20:34:16 +02:00
Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
093dfe9d59 | ||
![]() |
b579b5c6ad | ||
![]() |
ac2d340dc0 |
2 changed files with 5 additions and 8 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`.
|
> 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
|
## Example usage
|
||||||
|
|
||||||
|
@ -32,12 +32,9 @@ jobs:
|
||||||
- name: Checkout sources
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
uses: gradle/gradle-build-action@v3
|
uses: gradle/actions/setup-gradle@v3
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
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.
|
See the [full setup-gradle documentation](https://github.com/gradle/actions/tree/main/setup-gradle) for more advanced usage scenarios.
|
||||||
|
|
|
@ -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.'
|
description: 'Configures Gradle for GitHub actions, caching state and generating a dependency graph via Dependency Submission.'
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
|
@ -220,7 +220,7 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Gradle
|
- name: Setup Gradle
|
||||||
id: setup-gradle
|
id: setup-gradle
|
||||||
uses: gradle/actions/setup-gradle@v3.4.2
|
uses: gradle/actions/setup-gradle@v3.5.0
|
||||||
with:
|
with:
|
||||||
gradle-version: ${{ inputs.gradle-version }}
|
gradle-version: ${{ inputs.gradle-version }}
|
||||||
cache-disabled: ${{ inputs.cache-disabled }}
|
cache-disabled: ${{ inputs.cache-disabled }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue