mirror of
https://github.com/actions/setup-python
synced 2025-04-07 15:59:43 +00:00
Add matcher
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 finder = __importStar(require("./find-python"));
|
||||
const path = __importStar(require("path"));
|
||||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
@ -25,6 +26,8 @@ function run() {
|
||||
const arch = core.getInput('architecture', { required: true });
|
||||
yield finder.findPythonVersion(version, arch);
|
||||
}
|
||||
const matchersPath = path.join(__dirname, '..', '.github');
|
||||
console.log(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);
|
||||
}
|
||||
catch (err) {
|
||||
core.setFailed(err.message);
|
||||
|
Reference in New Issue
Block a user