Skip to content

Commit 8822fb0

Browse files
committed
change depth
1 parent a4fab90 commit 8822fb0

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323
steps:
2424
- name: Checkout Master
2525
uses: actions/checkout@v3
26+
- uses: actions/checkout@v2
27+
if: github.event_name == 'pull_request'
28+
with:
29+
fetch-depth: 0
30+
ref: ${{ github.event.pull_request.head.ref }}
31+
32+
- uses: actions/checkout@v3
33+
if: github.event_name == 'push'
34+
with:
35+
fetch-depth: 0
2636

2737
- name: Set up Python 3.7
2838
uses: actions/setup-python@v2
@@ -39,9 +49,8 @@ jobs:
3949
pwd
4050
ls -la
4151
- name: Deploy
42-
uses: actions/deploy-pages@v1
4352
# with:
44-
# branch: master # The branch the action should deploy to.
45-
# run: |
46-
# git pull
47-
# mkdocs gh-deploy
53+
# branch: master # The branch the action should deploy to.
54+
run: |
55+
git pull
56+
mkdocs gh-deploy

0 commit comments

Comments
 (0)