1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-python synced 2025-06-09 21:02:19 +02:00
This commit is contained in:
Kazuhiro Masuda 2025-05-23 15:12:36 -07:00 committed by GitHub
commit 0edeb35cec
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

@ -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')}`);