Skip to content

Commit

Permalink
add debug lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-shibanov committed Oct 17, 2022
1 parent 5d69c95 commit bc96748
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66837,13 +66837,17 @@ function run() {
try {
let versions;
const resolvedVersionInput = resolveVersionInput();
core.info(`resolvedVersionInput is ${resolvedVersionInput}`);
core.info(`resolvedVersionInput[0] is ${resolvedVersionInput[0]}`);
const checkLatest = core.getBooleanInput('check-latest');
if (Array.isArray(resolvedVersionInput)) {
versions = resolveVersionInput;
}
else {
versions = [resolveVersionInput];
}
core.info(`versions is ${versions}`);
core.info(`versions.length is ${versions.length}`);
if (versions.length) {
let pythonVersion = '';
for (const version of versions) {
Expand Down
5 changes: 5 additions & 0 deletions src/setup-python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ async function run() {
try {
let versions: string[];
const resolvedVersionInput = resolveVersionInput();
core.info(`resolvedVersionInput is ${resolvedVersionInput}`);
core.info(`resolvedVersionInput[0] is ${resolvedVersionInput[0]}`);
const checkLatest = core.getBooleanInput('check-latest');

if (Array.isArray(resolvedVersionInput)) {
Expand All @@ -86,6 +88,9 @@ async function run() {
versions = [(resolveVersionInput as unknown) as string];
}

core.info(`versions is ${versions}`);
core.info(`versions.length is ${versions.length}`);

if (versions.length) {
let pythonVersion = '';
for (const version of versions) {
Expand Down

0 comments on commit bc96748

Please sign in to comment.