Skip to content

Commit 70c7490

Browse files
committed
try new token
1 parent aeee303 commit 70c7490

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36991,7 +36991,7 @@ const glob = __importStar(__nccwpck_require__(8211));
3699136991
const minimatch_1 = __nccwpck_require__(4501);
3699236992
async 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;

src/sync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface SyncOptions {
2525

2626
export 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;

0 commit comments

Comments
 (0)