Skip to content

Commit 3c755b2

Browse files
committed
fix: github action: change default branch to main
Signed-off-by: D4ryl00 <[email protected]>
1 parent 7d5866b commit 3c755b2

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

.github/workflows/benchmark.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
tags:
55
- v*
66
branches:
7-
- master
7+
- main
88
paths:
99
- "**"
1010
- "!**.md"
@@ -63,15 +63,15 @@ jobs:
6363
run: git checkout ${{ github.event.pull_request.base.sha }}
6464
if: github.event_name == 'pull_request'
6565

66-
- name: Cache go modules (master)
66+
- name: Cache go modules (main)
6767
uses: actions/[email protected]
6868
if: github.event_name == 'pull_request'
6969
with:
7070
path: ~/go/pkg/mod
7171
key: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-${{ hashFiles('**/go.sum') }}
7272
restore-keys: ${{ runner.os }}-go-${{ env.go_version }}-${{ env.json_cache-versions_go }}-
7373

74-
- name: Run benchmark (master)
74+
- name: Run benchmark (main)
7575
run: make go.unittest | tee output_base.txt
7676
if: github.event_name == 'pull_request'
7777
working-directory: .
@@ -81,8 +81,8 @@ jobs:
8181
GO_TEST_OPTS: -bench=. -test.benchmem -cpuprofile cpu_base.prof -memprofile mem_base.prof -test.timeout=1200s -count=5 -tags "fts5 sqlite sqlite_unlock_notify"
8282

8383
- name: Benchstat
84-
id: benchstat-master
85-
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
84+
id: benchstat-main
85+
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
8686
run: |
8787
echo 'Benchmark report' >> $GITHUB_STEP_SUMMARY
8888
echo '```' >> $GITHUB_STEP_SUMMARY
@@ -194,11 +194,11 @@ jobs:
194194
195195
# upload arifacts
196196
#
197-
- name: upload artifact (master)
197+
- name: upload artifact (main)
198198
uses: actions/upload-artifact@v3
199-
if: github.ref == 'refs/heads/master'
199+
if: github.ref == 'refs/heads/main'
200200
with:
201-
name: "bench-master"
201+
name: "bench-main"
202202
path: go/pprof_html
203203

204204
- name: upload artifact (PR)

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master, v1 ]
16+
branches: [ main ]
1717
paths:
1818
- '**'
1919
- '!**.md'
@@ -22,7 +22,7 @@ on:
2222
- '.github/workflows/codeql-analysis.yml'
2323
pull_request:
2424
# The branches below must be a subset of the branches above
25-
branches: [ master ]
25+
branches: [ main ]
2626
paths:
2727
- '**'
2828
- '!**.md'

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
tags:
55
- v*
66
branches:
7-
- master
7+
- main
88
paths:
99
- "**"
1010
- "!**.md"

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: PR
22

33
on:
44
pull_request:
5-
branches: [ master ]
5+
branches: [ main ]
66
issue_comment:
77
types: [ edited ]
88

@@ -16,7 +16,7 @@ jobs:
1616
git fetch --prune --unshallow --tags
1717
- uses: snyk/[email protected]
1818
with:
19-
releaseBranch: master
19+
releaseBranch: main
2020
env:
2121
GITHUB_PR_USERNAME: ${{ github.actor }}
2222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/protobuf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
tags:
55
- v*
66
branches:
7-
- master
7+
- main
88
paths:
99
- "api/**"
1010
- "Makefile"

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
pull_request:
77
paths:
88
# Go
@@ -33,7 +33,7 @@ jobs:
3333
uses: docker://ghcr.io/codfish/semantic-release-action:v1
3434
with:
3535
branches: |
36-
['master']
36+
['main']
3737
plugins: |
3838
[
3939
'@semantic-release/commit-analyzer',

0 commit comments

Comments
 (0)