Skip to content

Commit 1507791

Browse files
Ricus NortjeRicus Nortje
authored andcommitted
use main branch in workflows instead of master
1 parent 64c99fd commit 1507791

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Build package
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
pull_request:
99
branches:
10-
- master
10+
- main
1111

1212
concurrency: build-${{ github.ref }}
1313

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
cache-from: |
5858
type=gha,scope=sha-${{ github.sha }}
5959
type=gha,scope=${{ github.ref_name }}
60-
type=gha,scope=${{ github.base_ref || 'master' }}
60+
type=gha,scope=${{ github.base_ref || 'main' }}
6161
type=gha,scope=main
6262
cache-to: |
6363
type=gha,scope=sha-${{ github.sha }},mode=max

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ jobs:
3838
steps:
3939
- name: Validate ref
4040
run: |
41-
if [ "${{ github.ref }}" != refs/heads/master ]; then
42-
>&2 echo "Invalid ref: ${{ github.ref }} (expected: refs/heads/master)"
41+
if [ "${{ github.ref }}" != refs/heads/main ]; then
42+
>&2 echo "Invalid ref: ${{ github.ref }} (expected: refs/heads/main)"
4343
exit 1
4444
fi
4545

0 commit comments

Comments
 (0)