Skip to content

Sync Hourly

Sync Hourly #16334

Workflow file for this run

name: Sync Hourly
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:
inputs:
recipe:
description: Sync manually
required: false
jobs:
sync:
runs-on: ubuntu-latest
name: Check For Changes
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Generate Stuff
run: |
npm install
npm upgrade pogo-data-generator
npm upgrade @na-ji/pogo-protos
npm start
- name: Check for changes
run: |
if git diff --quiet; then
echo "changes_exist=false" >> $GITHUB_ENV
else
echo "changes_exist=true" >> $GITHUB_ENV
fi
- name: Publish Changes
if: ${{ env.changes_exist == 'true' }}
run: |
git config --global user.name "turtlesocks-bot"
git config --global user.email "[email protected]"
git add --all
git commit --message "Hourly Sync"
git push