From 18f7dc018cc2cd597073088f7c7591b9d1c02672 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Mon, 28 Feb 2022 21:17:05 +0900 Subject: [PATCH] feat: revert update action runtime to node 16 --- .github/workflows/ci.yml | 5 ++--- action.yml | 2 +- dist/index.js | 6 +++--- src/main.ts | 6 +++--- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d59cfd46fc..7bb4b151ed 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,10 +15,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v1 with: - node-version: 16.x - cache: npm + node-version: 12.x - uses: actions/setup-python@v2 with: python-version: '3.x' diff --git a/action.yml b/action.yml index 09290a8108..60e3adeb7d 100644 --- a/action.yml +++ b/action.yml @@ -81,7 +81,7 @@ outputs: pull-request-head-sha: description: 'The commit SHA of the pull request branch.' runs: - using: 'node16' + using: 'node12' main: 'dist/index.js' branding: icon: 'git-pull-request' diff --git a/dist/index.js b/dist/index.js index 6144a21d46..f4a2a38390 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1085,9 +1085,9 @@ function run() { commitMessage: core.getInput('commit-message'), committer: core.getInput('committer'), author: core.getInput('author'), - signoff: core.getBooleanInput('signoff'), + signoff: core.getInput('signoff') === 'true', branch: core.getInput('branch'), - deleteBranch: core.getBooleanInput('delete-branch'), + deleteBranch: core.getInput('delete-branch') === 'true', branchSuffix: core.getInput('branch-suffix'), base: core.getInput('base'), pushToFork: core.getInput('push-to-fork'), @@ -1098,7 +1098,7 @@ function run() { reviewers: utils.getInputAsArray('reviewers'), teamReviewers: utils.getInputAsArray('team-reviewers'), milestone: Number(core.getInput('milestone')), - draft: core.getBooleanInput('draft') + draft: core.getInput('draft') === 'true' }; core.debug(`Inputs: ${(0, util_1.inspect)(inputs)}`); yield (0, create_pull_request_1.createPullRequest)(inputs); diff --git a/src/main.ts b/src/main.ts index f3d9171cbe..45a1ae85ea 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,9 +12,9 @@ async function run(): Promise { commitMessage: core.getInput('commit-message'), committer: core.getInput('committer'), author: core.getInput('author'), - signoff: core.getBooleanInput('signoff'), + signoff: core.getInput('signoff') === 'true', branch: core.getInput('branch'), - deleteBranch: core.getBooleanInput('delete-branch'), + deleteBranch: core.getInput('delete-branch') === 'true', branchSuffix: core.getInput('branch-suffix'), base: core.getInput('base'), pushToFork: core.getInput('push-to-fork'), @@ -25,7 +25,7 @@ async function run(): Promise { reviewers: utils.getInputAsArray('reviewers'), teamReviewers: utils.getInputAsArray('team-reviewers'), milestone: Number(core.getInput('milestone')), - draft: core.getBooleanInput('draft') + draft: core.getInput('draft') === 'true' } core.debug(`Inputs: ${inspect(inputs)}`)