Skip to content

.github/workflows/keep-alive.yml #314

.github/workflows/keep-alive.yml

.github/workflows/keep-alive.yml #314

Workflow file for this run

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