Skip to content

Scheduled Health Check #9

Scheduled Health Check

Scheduled Health Check #9

Workflow file for this run

name: Scheduled Health Check
on:
workflow_dispatch:
schedule:
- cron: "0 0 */5 * *" # each 5 days
jobs:
health-check:
runs-on: ubuntu-latest
env:
HEALTHCHECK_URL: ${{ secrets.HEALTHCHECK_URL }}
HEALTHCHECK_TOKEN: ${{ secrets.HEALTHCHECK_TOKEN }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Run Health Check
run: npx tsx scripts/check.ts