mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-09 21:02:19 +02:00
Merge 3a69c5f668
into 5db1cf9a59
This commit is contained in:
commit
0edeb35cec
4 changed files with 56 additions and 4 deletions
9
dist/setup/index.js
vendored
9
dist/setup/index.js
vendored
|
@ -97010,7 +97010,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