mirror of
				https://gitea.com/actions/setup-java.git
				synced 2025-11-04 05:39:09 +08:00 
			
		
		
		
	Add problem matcher (#4)
This commit is contained in:
		@@ -17,6 +17,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
const core = __importStar(require("@actions/core"));
 | 
			
		||||
const installer = __importStar(require("./installer"));
 | 
			
		||||
const path = __importStar(require("path"));
 | 
			
		||||
function run() {
 | 
			
		||||
    return __awaiter(this, void 0, void 0, function* () {
 | 
			
		||||
        try {
 | 
			
		||||
@@ -24,6 +25,8 @@ function run() {
 | 
			
		||||
            const arch = core.getInput('architecture', { required: true });
 | 
			
		||||
            const jdkFile = core.getInput('jdkFile', { required: true });
 | 
			
		||||
            yield installer.getJava(version, arch, jdkFile);
 | 
			
		||||
            const matchersPath = path.join(__dirname, '..', '.github');
 | 
			
		||||
            console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
 | 
			
		||||
        }
 | 
			
		||||
        catch (error) {
 | 
			
		||||
            core.setFailed(error.message);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user