Skip to content

Commit da1e3bb

Browse files
authored
Change the default branch from master to main in GH Actions (#318)
1 parent a5d7942 commit da1e3bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66
branches:
7-
- master
7+
- main
88
push:
99
branches:
10-
- master
10+
- main
1111

1212
jobs:
1313
checkstyle:
@@ -194,8 +194,8 @@ jobs:
194194
run: |
195195
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
196196
GIT_BRANCH=PR
197-
elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/heads/master" ]]; then
198-
GIT_BRANCH=master
197+
elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == "refs/heads/main" ]]; then
198+
GIT_BRANCH=main
199199
fi
200200
201201
BUILD_ID=$(./create_build_id.sh $GIT_BRANCH ${{ github.run_number }} ${{ github.sha }})

0 commit comments

Comments
 (0)