Unverified Commit b9684c0c authored by Daz DeBoer's avatar Daz DeBoer
Browse files

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.
parent 5423935c
Loading
Loading
Loading
Loading
+1 −1
Changes for .github/workflows/prod.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ jobs:
    - name: Test use Gradle version alias
      uses: ./
      with:
        gradle-version: rc
        gradle-version: release-candidate
        build-root-directory: __tests__/samples/no-wrapper
        arguments: help
    - name: Test use defined Gradle executable
+2 −2
Changes for README.md: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -94,7 +94,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.      |

@@ -116,7 +116,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
```

+5
Changes for src/provision.ts: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -19,6 +19,11 @@ export async function gradleVersion(version: string): Promise<string> {
        case 'current':
            return gradleCurrent()
        case 'rc':
            core.warning(
                `Specifying gradle-version 'rc' has been deprecated. Use 'release-candidate' instead.`
            )
            return gradleReleaseCandidate()
        case 'release-candidate':
            return gradleReleaseCandidate()
        case 'nightly':
            return gradleNightly()