mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-26 02:00:58 -05:00
Prefer ‘release-candidate’ instead of ‘rc’
This makes the version alias match other places where we reference a release candidate version. The 'rc' alias is still supported, but emits a deprecation warning.
This commit is contained in:
parent
5423935c9b
commit
b9684c0cf5
3 changed files with 12 additions and 7 deletions
2
.github/workflows/prod.yml
vendored
2
.github/workflows/prod.yml
vendored
|
@ -31,7 +31,7 @@ jobs:
|
||||||
- name: Test use Gradle version alias
|
- name: Test use Gradle version alias
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
gradle-version: rc
|
gradle-version: release-candidate
|
||||||
build-root-directory: __tests__/samples/no-wrapper
|
build-root-directory: __tests__/samples/no-wrapper
|
||||||
arguments: help
|
arguments: help
|
||||||
- name: Test use defined Gradle executable
|
- name: Test use defined Gradle executable
|
||||||
|
|
12
README.md
12
README.md
|
@ -92,11 +92,11 @@ Moreover, you can use the following aliases:
|
||||||
|
|
||||||
| Alias | Selects |
|
| Alias | Selects |
|
||||||
| --- |---|
|
| --- |---|
|
||||||
| `wrapper` | The Gradle wrapper's version (default, useful for matrix builds) |
|
| `wrapper` | The Gradle wrapper's version (default, useful for matrix builds) |
|
||||||
| `current` | The current [stable release](https://gradle.org/install/) |
|
| `current` | The current [stable release](https://gradle.org/install/) |
|
||||||
| `rc` | The current [release candidate](https://gradle.org/release-candidate/) if any, otherwise fallback to `current` |
|
| `release-candidate` | The current [release candidate](https://gradle.org/release-candidate/) if any, otherwise fallback to `current` |
|
||||||
| `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, for example, 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:
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ jobs:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- uses: eskatos/gradle-command-action@v1
|
- uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
with:
|
||||||
gradle-version: rc
|
gradle-version: release-candidate
|
||||||
arguments: build --dry-run # just test build configuration
|
arguments: build --dry-run # just test build configuration
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,11 @@ export async function gradleVersion(version: string): Promise<string> {
|
||||||
case 'current':
|
case 'current':
|
||||||
return gradleCurrent()
|
return gradleCurrent()
|
||||||
case 'rc':
|
case 'rc':
|
||||||
|
core.warning(
|
||||||
|
`Specifying gradle-version 'rc' has been deprecated. Use 'release-candidate' instead.`
|
||||||
|
)
|
||||||
|
return gradleReleaseCandidate()
|
||||||
|
case 'release-candidate':
|
||||||
return gradleReleaseCandidate()
|
return gradleReleaseCandidate()
|
||||||
case 'nightly':
|
case 'nightly':
|
||||||
return gradleNightly()
|
return gradleNightly()
|
||||||
|
|
Loading…
Reference in a new issue