This commit is contained in:
Kazuhiro Masuda 2025-06-20 22:58:59 +01:00 committed by GitHub
commit 4048a0d7a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 56 additions and 4 deletions

9
dist/setup/index.js vendored
View file

@ -96949,7 +96949,14 @@ function run() {
}
}
else {
core.warning('The `python-version` input is not set. The version of Python currently in `PATH` will be used.');
const trueValue = ['true', 'True', 'TRUE'];
const pythonVersionRequired = process.env['PYTHON_VERSION_REQUIRED'] || '';
if (!trueValue.includes(pythonVersionRequired)) {
core.warning('The `python-version` input is not set. The version of Python currently in `PATH` will be used.');
}
else {
throw new Error('The `python-version` input is required.');
}
}
const matchersPath = path.join(__dirname, '../..', '.github');
core.info(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);