.github/workflows/keep-alive.yml #401
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
on: | |
schedule: | |
- cron: '58 23 * * *' # Run every day at 11:58 PM (UTC) | |
jobs: | |
keep-alive: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '14' | |
- name: Run Node.js Script | |
run: | | |
npm install | |
node index.js | |
- name: Commit and Push Changes | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: | | |
git config user.name "sudoevans" | |
git config user.email "snaveqiptoo@gmail.com" | |
git add . | |
git commit -m "Keep alive update" | |
git push -u origin HEAD | |