.github/workflows/keep-alive.yml #5
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: '* * * * *' # Run every minute for testing | |
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 | |
run: | | |
git config user.name "sudoevans" | |
git config user.email "snaveqiptoo@gmail.com" | |
git add README.md | |
git commit -m "Keep alive update" | |
git push |