Skip to content

Commit c7e1de5

Browse files
authored
Add a chron schedule (#715)
1 parent 519b8d5 commit c7e1de5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/frontend.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Build frontend
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
pull_request:
5+
schedule:
6+
- cron: '18 4 * * *'
37

48
jobs:
59
build-and-deploy-if-main:
@@ -51,7 +55,7 @@ jobs:
5155

5256
- name: Deploy
5357
uses: JamesIves/[email protected]
54-
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
58+
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'schedule')
5559
with:
5660
token: ${{ secrets.GITHUB_TOKEN }}
5761
branch: gh-pages

0 commit comments

Comments
 (0)