From 5ac03996de9219cf66534a627412e8e9843c51d3 Mon Sep 17 00:00:00 2001 From: BetaHuhn Date: Thu, 18 Mar 2021 16:20:54 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Fix=20lint=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.js | 2 +- src/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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(`