Skip to content

Commit 75bac0a

Browse files
authored
Merge pull request jamstack#607 from jamstack/zl/daily-build
Adds GitHub action to do daily build
2 parents c08bea9 + 939417f commit 75bac0a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/scheduled-build.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# via https://www.voorhoede.nl/en/blog/scheduling-netlify-deploys-with-github-actions/
2+
3+
name: Scheduled build
4+
on:
5+
schedule:
6+
- cron: '0 14 * * *'
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Trigger our build webhook on Netlify
12+
run: curl -s -X POST "https://api.netlify.com/build_hooks/${TOKEN}"
13+
env:
14+
TOKEN: ${{ secrets.NETLIFY_CRON_BUILD_HOOK }}

0 commit comments

Comments
 (0)