Skip to content

Update Data Every 3 Hours #8209

Update Data Every 3 Hours

Update Data Every 3 Hours #8209

Workflow file for this run

name: Update Data Every 3 Hours
on:
schedule:
- cron: '15 */3 * * *'
workflow_dispatch:
jobs:
update-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: npm install
- run: npm run update-data
- name: Commit changes
run: |
if [ -n "$(git status --porcelain)" ]; then
git config --global user.name 'automated_ellanan'
git config --global user.email '[email protected]'
git add .
git commit -m "Automated data update"
git push
else
echo "no changes";
fi