mirror of
				https://kkgithub.com/actions/setup-python.git
				synced 2025-10-31 10:41:52 +08:00 
			
		
		
		
	Remove old parameter that is deprecated
This commit is contained in:
		| @ -8,10 +8,6 @@ inputs: | |||||||
|   architecture: |   architecture: | ||||||
|     description: 'The target architecture (x86, x64) of the Python interpreter.' |     description: 'The target architecture (x86, x64) of the Python interpreter.' | ||||||
|     default: 'x64' |     default: 'x64' | ||||||
| # Deprecated option, do not use. Will not be supported after October 1, 2019 |  | ||||||
|   version: |  | ||||||
|     description: 'Deprecated. Use python-version instead. Will not be supported after October 1, 2019' |  | ||||||
|     deprecationMessage: 'The version property will not be supported after October 1, 2019. Use python-version instead' |  | ||||||
| runs: | runs: | ||||||
|   using: 'node12' |   using: 'node12' | ||||||
|   main: 'lib/setup-python.js' |   main: 'lib/setup-python.js' | ||||||
|  | |||||||
| @ -21,10 +21,7 @@ const path = __importStar(require("path")); | |||||||
| function run() { | function run() { | ||||||
|     return __awaiter(this, void 0, void 0, function* () { |     return __awaiter(this, void 0, void 0, function* () { | ||||||
|         try { |         try { | ||||||
|             let version = core.getInput('version'); |             let version = core.getInput('python-version'); | ||||||
|             if (!version) { |  | ||||||
|                 version = core.getInput('python-version'); |  | ||||||
|             } |  | ||||||
|             if (version) { |             if (version) { | ||||||
|                 const arch = core.getInput('architecture', { required: true }); |                 const arch = core.getInput('architecture', { required: true }); | ||||||
|                 yield finder.findPythonVersion(version, arch); |                 yield finder.findPythonVersion(version, arch); | ||||||
|  | |||||||
| @ -4,10 +4,7 @@ import * as path from 'path'; | |||||||
|  |  | ||||||
| async function run() { | async function run() { | ||||||
|   try { |   try { | ||||||
|     let version = core.getInput('version'); |     let version = core.getInput('python-version'); | ||||||
|     if (!version) { |  | ||||||
|       version = core.getInput('python-version'); |  | ||||||
|     } |  | ||||||
|     if (version) { |     if (version) { | ||||||
|       const arch: string = core.getInput('architecture', {required: true}); |       const arch: string = core.getInput('architecture', {required: true}); | ||||||
|       await finder.findPythonVersion(version, arch); |       await finder.findPythonVersion(version, arch); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Konrad Pabjan
					Konrad Pabjan