diff --git a/src/config.js b/src/config.js index e092bbe6..43958993 100644 --- a/src/config.js +++ b/src/config.js @@ -94,7 +94,7 @@ const context = { key: 'SKIP_PR', type: 'boolean', default: false - }), + }) } core.setSecret(context.GITHUB_TOKEN) diff --git a/src/index.js b/src/index.js index 0f21ec53..73f878d6 100644 --- a/src/index.js +++ b/src/index.js @@ -39,7 +39,7 @@ const run = async () => { await git.clone() await git.setIdentity(client) await git.getBaseBranch() - + if (!SKIP_PR) { await git.createPrBranch() @@ -123,7 +123,7 @@ const run = async () => { core.info('File(s) already up to date') if (SKIP_PR) { - return; + return } if (existingPr) { @@ -145,7 +145,7 @@ const run = async () => { core.info(`Pushing changes to target repository`) await git.push() - + if (!SKIP_PR) { // If each file was committed separately, list them in the PR description const changedFiles = dedent(`