build: update main branch name in GH workflow

PR-URL: https://github.com/nodejs/node/pull/43481
Refs: https://github.com/nodejs/node/issues/33864
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Tierney Cyren <hello@bnb.im>
This commit is contained in:
Feng Yu 2022-06-23 12:57:51 +08:00 committed by GitHub
parent d81d426f99
commit 6f924ac691
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 5 additions and 12 deletions

View File

@ -12,7 +12,6 @@ on:
- '!.github/workflows/build-tarball.yml'
push:
branches:
- master
- main
- v[0-9]+.x-staging
- v[0-9]+.x

View File

@ -9,7 +9,6 @@ on:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- master
- main
- canary
- v[0-9]+.x-staging

View File

@ -11,7 +11,8 @@ on:
- .github/**
- '!.github/workflows/coverage-linux.yml'
push:
branches: [master, main]
branches:
- main
paths-ignore:
- '**.md'
- benchmark/**

View File

@ -12,7 +12,8 @@ on:
- .github/**
- '!.github/workflows/coverage-windows.yml'
push:
branches: [master, main]
branches:
- main
paths-ignore:
- '**.md'
- benchmark/**

View File

@ -5,7 +5,6 @@ on:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- master
- main
- v[0-9]+.x-staging
- v[0-9]+.x

View File

@ -5,7 +5,6 @@ on:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- master
- main
- v[0-9]+.x-staging
- v[0-9]+.x
@ -50,7 +49,7 @@ jobs:
- name: Lint C/C++ files
run: make lint-cpp
format-cpp:
if: ${{ github.event.pull_request.draft == false && github.base_ref == 'master' }}
if: ${{ github.event.pull_request && github.event.pull_request.draft == false && github.base_ref == github.event.repository.default_branch }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

View File

@ -1,7 +1,6 @@
on:
push:
branches:
- master
- main
name: Notify on Force Push

View File

@ -12,7 +12,6 @@ on:
- '!.github/workflows/test-asan.yml'
push:
branches:
- master
- main
- canary
- v[0-9]+.x-staging

View File

@ -10,7 +10,6 @@ on:
paths: [test/internet/**]
push:
branches:
- master
- main
- canary
- v[0-9]+.x-staging

View File

@ -9,7 +9,6 @@ on:
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- master
- main
- canary
- v[0-9]+.x-staging

View File

@ -12,7 +12,6 @@ on:
- '!.github/workflows/test-macos.yml'
push:
branches:
- master
- main
- canary
- v[0-9]+.x-staging