mirror of https://github.com/facebook/jest.git
Rename main branch to main (#11855)
This commit is contained in:
parent
e0b33b74b5
commit
3b7536f86f
|
@ -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
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue