mirror of
https://github.com/actions/setup-python.git
synced 2025-12-17 05:52:37 +00:00
Merge 3a69c5f668 into 18566f86b3
This commit is contained in:
commit
a2deafe560
4 changed files with 56 additions and 4 deletions
9
dist/setup/index.js
vendored
9
dist/setup/index.js
vendored
|
|
@ -98058,7 +98058,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')}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue