Skip to content

Commit 5d69c95

Browse files
add debug line
1 parent b7e2ad3 commit 5d69c95

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/setup/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66798,8 +66798,9 @@ function cacheDependencies(cache, pythonVersion) {
6679866798
}
6679966799
function resolveVersionInput() {
6680066800
let version = core.getMultilineInput('python-version');
66801+
core.info(`getMultilineInput is ${version}`);
6680166802
let versionFile = core.getInput('python-version-file');
66802-
if (version && versionFile) {
66803+
if (version.length && versionFile) {
6680366804
core.warning('Both python-version and python-version-file inputs are specified, only python-version will be used.');
6680466805
}
6680566806
if (version.length) {

src/setup-python.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ async function cacheDependencies(cache: string, pythonVersion: string) {
2424

2525
function resolveVersionInput(): string | string[] {
2626
let version: string | string[] = core.getMultilineInput('python-version');
27+
core.info(`getMultilineInput is ${version}`);
2728
let versionFile = core.getInput('python-version-file');
2829

29-
if (version && versionFile) {
30+
if (version.length && versionFile) {
3031
core.warning(
3132
'Both python-version and python-version-file inputs are specified, only python-version will be used.'
3233
);

0 commit comments

Comments
 (0)