Skip to content

healthcheck

healthcheck #4758

Workflow file for this run

name: healthcheck
on:
push:
schedule:
- cron: "*/12 * * * *"
jobs:
healthcheck:
name: Health Check
runs-on: ubuntu-latest
steps:
- name: server-check
run: wget https://student-database-cosa-jztd.onrender.com --tries=1 -T 70 # Check if the server is working and turn it on if not working.
- name: Output error code
id: error
run: echo "error=$?" >> $GITHUB_OUTPUT
- name: Error code check
run: |
if [[ ${{ steps.error.outputs.error}} == 0 ]]; then exit 0; else exit 1; fi