Skip to content

Commit

Permalink
add vars
Browse files Browse the repository at this point in the history
  • Loading branch information
julz0815 committed Feb 12, 2024
1 parent eaa1d91 commit 8582640
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,19 @@ try {
console.log('resultsFile: '+resultsFile+'\nwaitTime: '+waitTime+'\nsource_base_path_1: '+source_base_path_1+'\nsource_base_path_2: '+source_base_path_2+'\nsource_base_path_3: '+source_base_path_3+'\ncommit_hash: '+commit_hash+'\ndebug: '+debug)



let owner
let repo

// other params
if ( core.getInput('repo_owner') && core.getInput('repo_name') ){
const owner = core.getInput('repo_owner');
owner = core.getInput('repo_owner');
console.log('Owner: '+core.getInput('repo_owner'))
const repo = core.getInput('repo_name');
repo = core.getInput('repo_name');
console.log('Repo: '+core.getInput('repo_name'))
}
else {
const owner = github.context.repo.owner;
const repo = github.context.repo.repo;
owner = github.context.repo.owner;
repo = github.context.repo.repo;
}

console.log('owner = '+owner);
Expand Down

0 comments on commit 8582640

Please sign in to comment.