Daily Build #1458
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() }} |