diff --git a/.github/workflows/health-check.yml b/.github/workflows/health-check.yml new file mode 100644 index 0000000..61a0667 --- /dev/null +++ b/.github/workflows/health-check.yml @@ -0,0 +1,20 @@ +name: Health check + +on: + schedule: + - cron: '1,4,7,11,13,17,20,23,26,29,32,35,38,41,44,47,50,53,56,58 * * * *' + push: + branches: + - main + pull_request: + branches: [main] + types: [opened, synchronize] + +jobs: + ping-server: + runs-on: ubuntu-latest + steps: + - name: Check the deployed service URL + uses: jtalk/url-health-check-action@v4 + with: + url: https://davidko5-express.onrender.com/utils/wakey-wakey \ No newline at end of file diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index cb1f6bb..627182b 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -35,23 +35,6 @@ jobs: title: Deploy failed message: "**Author:** ${{ github.event.head_commit.author.username }} \n **Commit URL:** ${{ github.event.head_commit.url }}" colour: '#fa0202' - - # - name: Deployment success notification - # if: success() - # uses: rjstone/discord-webhook-notify@v1.0.4 - # with: - # severity: info - # text: Deployment succeeded! - # details: head commit ${{github.event.head_commit.url}} - # webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }} - # - name: Deployment failure notification - # if: failure() - # uses: rjstone/discord-webhook-notify@v1.0.4 - # with: - # severity: failure - # text: Deployment failed! - # details: head commit ${{github.event.head_commit.url}} - # webhookUrl: ${{ secrets.DISCORD_WEBHOOK_URL }} tag-release: needs: [deployment-pipeline]