Skip to content

Commit

Permalink
add commitHash parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
julz0815 committed Mar 20, 2024
1 parent 9104eca commit e28ce1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ inputs:
debug:
description: enable debug logging
required: false
commitHash:
description: commit hash
required: false

runs:
using: 'node20'
Expand Down
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ try {
const source_base_path_3 = core.getInput('source_base_path_3');
const fail_build = core.getInput('fail_build');
const debug = core.getInput('debug')
const commit_hash = process.env.GITHUB_SHA;
let commit_hash = core.getInput('commitHash');
if ( commit_hash == "" ){
commit_hash = process.env.GITHUB_SHA;
}
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)


Expand Down

0 comments on commit e28ce1c

Please sign in to comment.