-
Notifications
You must be signed in to change notification settings - Fork 0
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 (npm…
- Loading branch information
1 parent
432e97e
commit 50d2ec2
Showing
8 changed files
with
1,771 additions
and
571 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
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
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.