Skip to content

Commit

Permalink
Add a chron schedule (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
IFenton authored Aug 13, 2024
1 parent 519b8d5 commit c7e1de5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build frontend
on: [push, pull_request]
on:
push:
pull_request:
schedule:
- cron: '18 4 * * *'

jobs:
build-and-deploy-if-main:
Expand Down Expand Up @@ -51,7 +55,7 @@ jobs:

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.2.2
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'schedule')
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
Expand Down

0 comments on commit c7e1de5

Please sign in to comment.