Skip to content

Commit 18f7dc0

Browse files
committed
feat: revert update action runtime to node 16
1 parent 89265e8 commit 18f7dc0

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.github/workflows/ci.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v2
18-
- uses: actions/setup-node@v2
18+
- uses: actions/setup-node@v1
1919
with:
20-
node-version: 16.x
21-
cache: npm
20+
node-version: 12.x
2221
- uses: actions/setup-python@v2
2322
with:
2423
python-version: '3.x'

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ outputs:
8181
pull-request-head-sha:
8282
description: 'The commit SHA of the pull request branch.'
8383
runs:
84-
using: 'node16'
84+
using: 'node12'
8585
main: 'dist/index.js'
8686
branding:
8787
icon: 'git-pull-request'

dist/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1085,9 +1085,9 @@ function run() {
10851085
commitMessage: core.getInput('commit-message'),
10861086
committer: core.getInput('committer'),
10871087
author: core.getInput('author'),
1088-
signoff: core.getBooleanInput('signoff'),
1088+
signoff: core.getInput('signoff') === 'true',
10891089
branch: core.getInput('branch'),
1090-
deleteBranch: core.getBooleanInput('delete-branch'),
1090+
deleteBranch: core.getInput('delete-branch') === 'true',
10911091
branchSuffix: core.getInput('branch-suffix'),
10921092
base: core.getInput('base'),
10931093
pushToFork: core.getInput('push-to-fork'),
@@ -1098,7 +1098,7 @@ function run() {
10981098
reviewers: utils.getInputAsArray('reviewers'),
10991099
teamReviewers: utils.getInputAsArray('team-reviewers'),
11001100
milestone: Number(core.getInput('milestone')),
1101-
draft: core.getBooleanInput('draft')
1101+
draft: core.getInput('draft') === 'true'
11021102
};
11031103
core.debug(`Inputs: ${(0, util_1.inspect)(inputs)}`);
11041104
yield (0, create_pull_request_1.createPullRequest)(inputs);

src/main.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ async function run(): Promise<void> {
1212
commitMessage: core.getInput('commit-message'),
1313
committer: core.getInput('committer'),
1414
author: core.getInput('author'),
15-
signoff: core.getBooleanInput('signoff'),
15+
signoff: core.getInput('signoff') === 'true',
1616
branch: core.getInput('branch'),
17-
deleteBranch: core.getBooleanInput('delete-branch'),
17+
deleteBranch: core.getInput('delete-branch') === 'true',
1818
branchSuffix: core.getInput('branch-suffix'),
1919
base: core.getInput('base'),
2020
pushToFork: core.getInput('push-to-fork'),
@@ -25,7 +25,7 @@ async function run(): Promise<void> {
2525
reviewers: utils.getInputAsArray('reviewers'),
2626
teamReviewers: utils.getInputAsArray('team-reviewers'),
2727
milestone: Number(core.getInput('milestone')),
28-
draft: core.getBooleanInput('draft')
28+
draft: core.getInput('draft') === 'true'
2929
}
3030
core.debug(`Inputs: ${inspect(inputs)}`)
3131

0 commit comments

Comments
 (0)