diff --git a/.github/workflows/schedule.yml b/.github/workflows/schedule.yml deleted file mode 100644 index 9a178f78a1..0000000000 --- a/.github/workflows/schedule.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Periodic Health Check - -on: - schedule: - - cron: '10 0 * * *' # Schedule the workflow to run every 24 hours - -jobs: - health_check: - runs-on: ubuntu-latest - steps: - - name: - run : echo "This step will run on every one minute" - - name: Perform Health Check - uses: jtalk/url-health-check-action@v3 - with: - url: 'https://full-stack-open-pokedex-7vtq.onrender.com' - - name: Health Check Success - uses: rjstone/discord-webhook-notify@v1 - if: success() - with: - severity: info - text: A new health check succeded. - webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} - - name: Health Check Failure and Show Commit Info - uses: rjstone/discord-webhook-notify@v1 - if: failure() - with: - severity: error - text: Health check failed! - webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} \ No newline at end of file diff --git a/.github/workflows/schedule_healthcheck.yml b/.github/workflows/schedule_healthcheck.yml new file mode 100644 index 0000000000..03e6b8dbfc --- /dev/null +++ b/.github/workflows/schedule_healthcheck.yml @@ -0,0 +1,19 @@ +name: Periodic Health Check + +on: + schedule: + - cron: '0 * * * *' # Schedule the workflow to run every 24 hours + +jobs: + health_check: + runs-on: ubuntu-latest + steps: + - name: + run : echo "This step will run on every one minute" + - name: Perform Health Check + uses: jtalk/url-health-check-action@v3 + with: + url: 'https://full-stack-open-pokedex-7vtq.onrender.com' + follow-redirect: false + max-attempts: 3 + retry-delay: 5s \ No newline at end of file