Keep Backend Active #5203
This file contains hidden or 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: Keep Backend Active | |
| on: | |
| schedule: | |
| - cron: '*/15 * * * *' # Runs every 15 minutes | |
| workflow_dispatch: | |
| jobs: | |
| ping-backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| - name: Run ping script | |
| run: cd scripts && node ping.js ${{ secrets.BACKEND_URL }} |