mirror of
				https://kkgithub.com/actions/setup-python.git
				synced 2025-11-04 12:44:05 +08:00 
			
		
		
		
	Use python-version (#10)
This commit is contained in:
		@ -21,7 +21,10 @@ const path = __importStar(require("path"));
 | 
			
		||||
function run() {
 | 
			
		||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
			
		||||
        try {
 | 
			
		||||
            const version = core.getInput('version');
 | 
			
		||||
            let version = core.getInput('version');
 | 
			
		||||
            if (!version) {
 | 
			
		||||
                version = core.getInput('python-version');
 | 
			
		||||
            }
 | 
			
		||||
            if (version) {
 | 
			
		||||
                const arch = core.getInput('architecture', { required: true });
 | 
			
		||||
                yield finder.findPythonVersion(version, arch);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user