Daily Node.js Job #114
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
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 |