Skip to content

Sync Super Goode Sheet #416

Sync Super Goode Sheet

Sync Super Goode Sheet #416

Workflow file for this run

name: Sync Super Goode Sheet
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
permissions:
contents: write
concurrency:
group: super-goode-sheet-sync
cancel-in-progress: false
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Sync approved sheet rows
run: node scripts/sync_sheet.js
env:
GOOGLE_SHEET_CSV_URL: ${{ secrets.GOOGLE_SHEET_CSV_URL }}
- name: Commit updated locations
run: |
if git diff --quiet -- data/locations.json locations.json data/geocode-cache.json super_goode_locations.csv index.html; then
echo "No changes to commit."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add data/locations.json locations.json data/geocode-cache.json super_goode_locations.csv index.html
git commit -m "Sync approved Super Goode sheet rows"
git push