Add matcher · python-machine-lrn/setup-python@f7f8dba · GitHub
Skip to content

Commit f7f8dba

Browse files
author
Danny McCormick
committed
Add matcher
1 parent 87886b8 commit f7f8dba

3 files changed

Lines changed: 22 additions & 0 deletions

File tree

‎.github/python.json‎

Lines changed: 16 additions & 0 deletions

‎lib/setup-python.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
1717
Object.defineProperty(exports, "__esModule", { value: true });
1818
const core = __importStar(require("@actions/core"));
1919
const finder = __importStar(require("./find-python"));
20+
const path = __importStar(require("path"));
2021
function run() {
2122
return __awaiter(this, void 0, void 0, function* () {
2223
try {
@@ -25,6 +26,8 @@ function run() {
2526
const arch = core.getInput('architecture', { required: true });
2627
yield finder.findPythonVersion(version, arch);
2728
}
29+
const matchersPath = path.join(__dirname, '..', '.github');
30+
console.log(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);
2831
}
2932
catch (err) {
3033
core.setFailed(err.message);

‎src/setup-python.ts‎

Lines changed: 3 additions & 0 deletions

0 commit comments

Comments
 (0)