Skip to content

Commit 38bb986

Browse files
authored
rename default branch master to main (#49)
1 parent 77a72e1 commit 38bb986

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
branches:
9-
- master
9+
- main
1010
schedule:
11-
- cron: "0 0 * * *"
11+
- cron: "43 2 * * *"
1212

1313
jobs:
1414
build:
@@ -45,12 +45,12 @@ jobs:
4545

4646
- name: Deploy to Github Pages
4747
uses: peaceiris/actions-gh-pages@v3
48-
if: success() && github.ref == 'refs/heads/master'
48+
if: success() && github.ref == 'refs/heads/main'
4949
with:
5050
github_token: ${{ secrets.GITHUB_TOKEN }}
5151
publish_branch: gh-pages
5252
publish_dir: ./output
5353

5454
- name: Trigger page build
55-
if: success() && github.ref == 'refs/heads/master'
55+
if: success() && github.ref == 'refs/heads/main'
5656
run: "curl 'https://api.github.com/repos/FriendsOfREDAXO/phpdoc/pages/builds' -X POST -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' -H 'Accept: application/vnd.github.mister-fantastic-preview'"

0 commit comments

Comments
 (0)