Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fd8f0a9

Browse filesBrowse 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
Copy full SHA for fd8f0a9

File tree

Expand file treeCollapse file tree

2 files changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-0
lines changed

‎dist/setup/index.js

Copy file name to clipboardExpand all lines: dist/setup/index.js
+3Lines 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

Copy file name to clipboardExpand all lines: src/setup-python.ts
+4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.