mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 02:26:19 +08:00
refine readme
This commit is contained in:
parent
8337949d80
commit
f943246fd9
@ -6,7 +6,9 @@ You might also be interested by the related [Gradle Plugin](https://github.com/e
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
The following workflow will run `gradle build` using the wrapper from the repository on ubuntu, macos and windows:
|
The following workflow will run `gradle build` using the wrapper from the repository on ubuntu, macos and windows. The only prerequisite is to have Java installed, you can define the version you need to run the build using the `actions/setup-java` action.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
// .github/workflows/gradle-build-pr.yml
|
// .github/workflows/gradle-build-pr.yml
|
||||||
@ -95,7 +97,7 @@ Moreover, you can use the following aliases:
|
|||||||
| `nightly` | The latest [nightly](https://gradle.org/nightly/), fails if none. |
|
| `nightly` | The latest [nightly](https://gradle.org/nightly/), fails if none. |
|
||||||
| `release-nightly` | The latest [release nightly](https://gradle.org/release-nightly/), fails if none. |
|
| `release-nightly` | The latest [release nightly](https://gradle.org/release-nightly/), fails if none. |
|
||||||
|
|
||||||
This can be handy to automatically test your build with the next Gradle version once a release candidate is out:
|
This can be handy to, for example, automatically test your build with the next Gradle version once a release candidate is out:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
// .github/workflows/test-gradle-rc.yml
|
// .github/workflows/test-gradle-rc.yml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user