Skip to content

Commit fd8f0a9

Browse files
Merge pull request actions#396 from akv-platform/v-sedoli/issue-241
Add warning if python version set to empty value
2 parents ae11205 + 8f73c14 commit fd8f0a9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

dist/setup/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6112,6 +6112,9 @@ function run() {
61126112
yield cacheDependencies(cache, pythonVersion);
61136113
}
61146114
}
6115+
else {
6116+
core.warning('The `python-version` input is not set. The version of Python currently in `PATH` will be used.');
6117+
}
61156118
const matchersPath = path.join(__dirname, '../..', '.github');
61166119
core.info(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);
61176120
}

src/setup-python.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ async function run() {
5353
if (cache && isCacheFeatureAvailable()) {
5454
await cacheDependencies(cache, pythonVersion);
5555
}
56+
} else {
57+
core.warning(
58+
'The `python-version` input is not set. The version of Python currently in `PATH` will be used.'
59+
);
5660
}
5761
const matchersPath = path.join(__dirname, '../..', '.github');
5862
core.info(`##[add-matcher]${path.join(matchersPath, 'python.json')}`);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy