Skip to content

Commit b5b28bb

Browse files
committed
feat: rename master branch
1 parent 759eb18 commit b5b28bb

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.github/workflows/branch-merge.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ jobs:
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}'

.github/workflows/gradle.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Java CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
test:
@@ -17,8 +17,6 @@ jobs:
1717
steps:
1818
- name: Checkout project
1919
uses: actions/checkout@v2
20-
with:
21-
ref: master
2220
- name: Set up jdk
2321
uses: actions/setup-java@v1
2422
with:

.github/workflows/prettier.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- master
7+
- main
88

99
jobs:
1010
prettier:
@@ -20,6 +20,6 @@ jobs:
2020
uses: creyD/[email protected]
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 }}

.github/workflows/sync.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Sync
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ main ]
66

77
jobs:
88
build:
@@ -28,3 +28,4 @@ jobs:
2828
gitee-password: ${{ secrets.GITEE_PASSWORD }}
2929
# 注意替换为你的 Gitee 仓库
3030
gitee-repo: doocs/data-structure-and-algorithm
31+
branch: main

0 commit comments

Comments
 (0)