Scheduled Health Check #21
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: 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 |