-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(node-pr): various fixes and updates for the node PR script (#5817)
- Loading branch information
1 parent
ef42996
commit 93bd6d1
Showing
9 changed files
with
1,508 additions
and
240 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,10 @@ on: | |
description: "The npm spec to create the PR from" | ||
required: true | ||
default: 'latest' | ||
branch: | ||
description: "The major node version to serve as the base of the PR. Should be `main` or a number like `18`, `19`, etc." | ||
required: true | ||
default: 'main' | ||
dryRun: | ||
description: "Setting this to anything will run all the steps except opening the PR" | ||
|
||
|
@@ -23,6 +27,8 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Git User | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|
@@ -46,4 +52,4 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.NODE_PULL_REQUEST_TOKEN }} | ||
run: | | ||
DRY_RUN=$([ -z "${{ inputs.dryRun }}" ] && echo "" || echo "--dry-run") | ||
node scripts/create-node-pr.js "${{ inputs.spec }}" "$DRY_RUN" | ||
node scripts/create-node-pr.js ${{ inputs.spec }} ${{ inputs.branch }} "$DRY_RUN" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.