File tree Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Expand file tree Collapse file tree 5 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 1313 with :
1414 github_token : ${{ github.token }}
1515 source_ref : ${{ github.ref }}
16- target_branch : ' master '
16+ target_branch : ' main '
1717 commit_message_template : ' [Automated] Merged {source_ref} into {target_branch}'
Original file line number Diff line number Diff line change 44 pull_request :
55 push :
66 branches :
7- - master
7+ - main
88
99jobs :
1010 prettier :
2020 uses : creyD/prettier_action@v3.0
2121 with :
2222 prettier_options : --write **/*.{html,js,md}
23- commit_message : ' docs : prettify code'
23+ commit_message : ' style : prettify code'
2424 env :
2525 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Sync
22
33on :
44 push :
5- branches : [ master ]
5+ branches : [ main ]
66
77jobs :
88 build :
1818 source-repo : " git@github.com:doocs/coding-interview.git"
1919 destination-repo : " git@gitee.com:Doocs/coding-interview.git"
2020
21- - name : Rebuild Gitee Pages
22- uses : mizuka-wu /gitee-pages-action@v1.0.0
21+ - name : Build Gitee Pages
22+ uses : yanglbme /gitee-pages-action@master
2323 with :
24- repository : doocs/coding-interview
25- cookie : ${{ secrets.GITEE_COOKIE }}
26- branch : master
24+ gitee-username : yanglbme
25+ gitee-password : ${{ secrets.GITEE_PASSWORD }}
26+ gitee-repo : doocs/coding-interview
27+ branch : main
Original file line number Diff line number Diff line change 11# 互联网公司 IT 技术面试题集
22
3- [ ![ license] ( https://badgen.net/github/license/doocs/leetcode?color=green )] ( https://github.com/doocs/coding-interview/blob/master /LICENSE )
3+ [ ![ license] ( https://badgen.net/github/license/doocs/leetcode?color=green )] ( https://github.com/doocs/coding-interview/blob/main /LICENSE )
44[ ![ stars] ( https://badgen.net/github/stars/doocs/coding-interview )] ( https://github.com/doocs/coding-interview/stargazers )
55[ ![ issues] ( https://badgen.net/github/open-issues/doocs/coding-interview )] ( https://github.com/doocs/coding-interview/issues )
66[ ![ forks] ( https://img.shields.io/github/forks/doocs/coding-interview.svg )] ( https://github.com/doocs/coding-interview/network/members )
Original file line number Diff line number Diff line change 5757 if ( / g i t h u b u s e r c o n t e n t \. c o m / . test ( vm . route . file ) ) {
5858 url = vm . route . file
5959 . replace ( "raw.githubusercontent.com" , "github.com" )
60- . replace ( / \/ m a s t e r / , "/blob/master " ) ;
60+ . replace ( / \/ m a i n / , "/blob/main " ) ;
6161 } else {
6262 url =
63- "https://github.com/doocs/coding-interview/blob/master /" +
63+ "https://github.com/doocs/coding-interview/blob/main /" +
6464 vm . route . file ;
6565 }
6666
You can’t perform that action at this time.
0 commit comments