mirror of
				https://gitea.com/actions/setup-python.git
				synced 2025-10-31 07:47:08 +00:00 
			
		
		
		
	Fail on error
This commit is contained in:
		| @@ -19,10 +19,15 @@ const core = __importStar(require("@actions/core")); | ||||
| const finder = __importStar(require("./find-python")); | ||||
| function run() { | ||||
|     return __awaiter(this, void 0, void 0, function* () { | ||||
|         const version = core.getInput('version'); | ||||
|         if (version) { | ||||
|             const arch = core.getInput('architecture', { required: true }); | ||||
|             yield finder.findPythonVersion(version, arch); | ||||
|         try { | ||||
|             const version = core.getInput('version'); | ||||
|             if (version) { | ||||
|                 const arch = core.getInput('architecture', { required: true }); | ||||
|                 yield finder.findPythonVersion(version, arch); | ||||
|             } | ||||
|         } | ||||
|         catch (err) { | ||||
|             core.setFailed(err.message); | ||||
|         } | ||||
|     }); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Danny McCormick
					Danny McCormick