Rename main branch to main (#11855)

This commit is contained in:
Ricky 2021-09-08 14:57:04 -04:00 committed by GitHub
parent e0b33b74b5
commit 3b7536f86f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ name: Node CI
on:
push:
branches:
- master
- main
pull_request:
branches:
- '**'
@ -15,7 +15,7 @@ jobs:
- uses: rokroskar/workflow-run-cleanup-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main'"
prepare-yarn-cache:
name: Prepare yarn cache

View File

@ -34,7 +34,7 @@ module.exports = {
if (locale !== 'en') {
return `https://crowdin.com/project/jest-v2/${locale}`;
}
return `https://github.com/facebook/jest/edit/master/website/${versionDocsDirPath}/${docPath}`;
return `https://github.com/facebook/jest/edit/main/website/${versionDocsDirPath}/${docPath}`;
},
path: '../docs',
sidebarPath: path.resolve(__dirname, './sidebars.json'),