Skip to content

Daily Build

Daily Build #1030

Workflow file for this run

name: Daily Build
on:
schedule:
- cron: '0 7 * * *'
workflow_dispatch:
jobs:
build:
name: Trigger build & deploy
runs-on: ubuntu-latest
steps:
- name: Tell healthchecks.io the action has started
uses: CamiloGarciaLaRotta/[email protected]
with:
url: https://hc-ping.com/${{ secrets.healthcheck_id }}/start
- name: Trigger Netlify build hook
uses: CamiloGarciaLaRotta/[email protected]
with:
url: https://api.netlify.com/build_hooks/${{ secrets.build_hook_id }}
method: post
if: ${{ always() }} # still run the build if the healthcheck curl fails!
- name: Tell healthchecks.io if the action succeeded
uses: CamiloGarciaLaRotta/[email protected]
with:
url: https://hc-ping.com/${{ secrets.healthcheck_id }}
- name: Tell healthchecks.io if the action failed
uses: CamiloGarciaLaRotta/[email protected]
with:
url: https://hc-ping.com/${{ secrets.healthcheck_id }}/fail
if: ${{ failure() }}