Skip to content

Commit 945bf77

Browse files
authored
Fix PR validation (#2)
1 parent a538ab4 commit 945bf77

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/pull-request.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: Cadl PR Validation
2-
on:
2+
on:
33
pull_request:
4-
branches: [master]
5-
4+
branches: [main]
5+
66
jobs:
77
build:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-node@v2
1212
with:
13-
node-version: '14'
13+
node-version: "14"
1414

1515
- run: node common/scripts/install-run-rush.js install
1616
name: Install JavaScript Dependencies
@@ -31,4 +31,4 @@ jobs:
3131
name: Check Formatting
3232

3333
- run: node eng/scripts/check-for-changed-files.js
34-
name: Check Git Status For Changed Files
34+
name: Check Git Status For Changed Files

eng/scripts/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function npmForEach(cmd, options) {
4646
// We could use { shell: true } to let Windows find .cmd, but that causes other issues.
4747
// It breaks ENOENT checking for command-not-found and also handles command/args with spaces
4848
// poorly.
49-
const isCmdOnWindows = ["rush", "npm", "code", "code-insiders", tsc, prettier, autorest];
49+
const isCmdOnWindows = ["rush", "npm", "code", "code-insiders", tsc, prettier];
5050

5151
export class CommandFailedError extends Error {
5252
constructor(msg, proc) {

0 commit comments

Comments
 (0)