Use ‘release-candidate’ instead of ‘rc’

This makes the version alias match other places where we reference a
release candidate version.
This commit is contained in:
Daz DeBoer 2021-06-24 15:59:03 -07:00
parent 5c01db8918
commit fc7de996f8
No known key found for this signature in database
GPG key ID: 70F584A28F2230E8
4 changed files with 14 additions and 8 deletions

View file

@ -28,6 +28,12 @@ jobs:
gradle-version: 6.9
build-root-directory: __tests__/samples/no-wrapper
arguments: help
- name: Test use Gradle version alias
uses: ./
with:
gradle-version: release-candidate
build-root-directory: __tests__/samples/no-wrapper
arguments: help
- name: Test use defined Gradle executable
uses: ./
with:

View file

@ -92,7 +92,7 @@ Moreover, you can use the following aliases:
| --- |---|
| `wrapper` | The Gradle wrapper's version (default, useful for matrix builds) |
| `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. |
| `release-nightly` | The latest [release nightly](https://gradle.org/release-nightly/), fails if none. |
@ -114,7 +114,7 @@ jobs:
java-version: 11
- uses: eskatos/gradle-command-action@v1
with:
gradle-version: rc
gradle-version: release-candidate
arguments: build --dry-run # just test build configuration
```

2
dist/main/index.js vendored

File diff suppressed because one or more lines are too long

View file

@ -16,7 +16,7 @@ export async function gradleVersion(version: string): Promise<string> {
switch (version) {
case 'current':
return gradleCurrent()
case 'rc':
case 'release-candidate':
return gradleReleaseCandidate()
case 'nightly':
return gradleNightly()