Skip to content

Commit 5fe17b5

Browse files
authored
Fix default branch name in workflow
1 parent 8fe248e commit 5fe17b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-spec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches-ignore: [ 'temp/*' ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ main ]
88

99
jobs:
1010
build-spec:
@@ -38,7 +38,7 @@ jobs:
3838
shell: bash
3939
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
4040
- name: deploy
41-
if: (github.ref == 'refs/heads/master' || startsWith(github.ref,'refs/heads/doc')) && github.event_name == 'push'
41+
if: (github.ref == 'refs/heads/main' || startsWith(github.ref,'refs/heads/doc')) && github.event_name == 'push'
4242
uses: peaceiris/[email protected]
4343
with:
4444
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)