Skip to content

Daily Node.js Job

Daily Node.js Job #128

Workflow file for this run

name: Daily Node.js Job
on:
schedule:
- cron: "5 10 * * *" # Run every day at 5:05 PM, latest most updates will be published
workflow_dispatch:
jobs:
run-node-script:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies
run: npm install
- name: Run Node.js script
run: node update.js
- name: Commit rules
run: |
git add .
git config --global user.name 'GrahamSH-LLK'
git config --global user.email '[email protected]'
git commit -am "Automated rules update"
git push