File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36991,7 +36991,7 @@ const glob = __importStar(__nccwpck_require__(8211));
3699136991const minimatch_1 = __nccwpck_require__(4501);
3699236992async function run() {
3699336993 try {
36994- const token = process.env.GITHUB_TOKEN || core.getInput('token');
36994+ const token = core.getInput('token') || process.env.GITHUB_TOKEN ;
3699536995 let branch = core.getInput('branch', { required: true });
3699636996 const autoMerge = core.getBooleanInput('auto_merge') || false;
3699736997 const addTimestamp = core.getBooleanInput('add_timestamp') || true;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ interface SyncOptions {
2525
2626export async function run ( ) : Promise < void > {
2727 try {
28- const token = process . env . GITHUB_TOKEN || core . getInput ( 'token' ) ;
28+ const token = core . getInput ( 'token' ) || process . env . GITHUB_TOKEN ;
2929 let branch = core . getInput ( 'branch' , { required : true } ) ;
3030 const autoMerge = core . getBooleanInput ( 'auto_merge' ) || false ;
3131 const addTimestamp = core . getBooleanInput ( 'add_timestamp' ) || true ;
You can’t perform that action at this time.
0 commit comments