Created
          January 2, 2024 11:53 
        
      - 
      
 - 
        
Save sudoevans/c4f210b35c745bd4e3a8ed3334003ad6 to your computer and use it in GitHub Desktop.  
    Github Action for Keep Alive
  
        
  
    
      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 Alive | |
| on: | |
| schedule: | |
| - cron: '* * * * *' # Run every minute for testing, you can put 11:59 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 "Your Name" | |
| git config user.email "[email protected]" | |
| git add update.md | |
| git commit -m "Keep alive update" | |
| git push -u origin HEAD | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment