Keep Server Alive #3
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: Keep Server Alive | |
on: | |
workflow_dispatch: # to trigger manually | |
schedule: | |
- cron: '0 0 * * 0' # This cron expression means "At 00:00 on Sunday" | |
jobs: | |
keep_alive: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '14' # Adjust to your required Node.js version | |
- name: Run keep_alive script | |
run: node keep_alive.js |