File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
inputs :
6
6
npmVersion :
7
- description : " NPM Version "
7
+ description : " 6.x.x or latest "
8
8
required : true
9
- default : ' "6.x.x" or "latest"'
9
+ default : ' latest'
10
+
10
11
11
12
jobs :
12
13
create-pull-request :
16
17
NPM_VERSION : ${{ github.event.inputs.npmVersion }}
17
18
SUPPORT_BRANCH : " v14.x-staging"
18
19
steps :
20
+ - name : Update gh cli & install jq parser
21
+ run : |
22
+ sudo apt-get update -y
23
+ sudo apt update
24
+ sudo apt-get install -y jq
25
+ sudo apt install gh
19
26
- name : Checkout npm/node
20
27
uses : actions/checkout@v2
21
28
with :
66
73
67
74
git add -A deps/npm
68
75
git commit -m "deps: upgrade npm to $npm_tag"
69
- git rebase --whitespace=fix HEAD^
76
+ git rebase --whitespace=fix master
70
77
git push origin "npm-$npm_tag"
71
- gh_release_body=`gh release view v"$npm_tag" -R npm/cli`
72
- gh pr create -R "nodejs/node" -B "$base_branch" -H "npm:npm-$npm_tag" --title "deps(cli): upgrade npm to $npm_tag" --body "$gh_release_body"
78
+ gh_release_body=`gh release view v"$npm_tag" -R npm/cli --json body | jq -r '.body'`
79
+
80
+ gh pr create -R "nodejs/node" -B "$base_branch" -H "npm:npm-$npm_tag" --title "deps: upgrade npm to $npm_tag" --body "$json_body"
You can’t perform that action at this time.
0 commit comments