Skip to content

Update Catalog Data #37

Update Catalog Data

Update Catalog Data #37

Workflow file for this run

name: Update Catalog Data
on:
workflow_dispatch:
schedule:
- cron: "15 6 */2 * *"
permissions:
contents: write
jobs:
update-data:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: npm
- name: Install dependencies
run: npm ci
- name: Refresh generated data
run: npm run update-data
- name: Commit updated data artifacts
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add data/
if git diff --cached --quiet; then
echo "No data changes to commit"
exit 0
fi
git commit -m "chore: refresh catalog data"
git push origin HEAD:${{ github.ref_name }}