mirror of
				https://github.com/gradle/gradle-build-action.git
				synced 2025-11-04 09:58:56 +08: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:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user