Skip to content

Commit ad90e3a

Browse files
committed
Add github.event_name == schedule (ref #22)
1 parent e03a222 commit ad90e3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/documentation.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
# Re-run every day at 4PM
1010
schedule:
11-
- cron: "55 * * * *"
11+
- cron: "01 * * * *"
1212

1313
# Re-run on demand:
1414
workflow_dispatch:
@@ -114,7 +114,7 @@ jobs:
114114
- run: echo "event_name=${{github.event_name}}"
115115

116116
- name: Deploy docs
117-
if: ${{ ( github.event_name == 'push' || github.event_name == 'workflow_dispatch' ) && github.event.ref == 'refs/heads/main' }}
117+
if: ${{ ( github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' ) && github.event.ref == 'refs/heads/main' }}
118118
uses: peaceiris/actions-gh-pages@v4
119119
with:
120120
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)