Skip to content

Auto Sync Skyve

Auto Sync Skyve #2

name: Auto Sync Skyve
on:
schedule:
- cron: "0 6 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Pixi
uses: prefix-dev/setup-pixi@v0.9.0
with:
pixi-version: latest
cache: true
- name: Sync and build
run: pixi run sync-and-build "${{ secrets.SKYVE_APIKEY }}"
- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add ModsData.csv CustomizableMenuData.json
if git diff --cached --quiet; then
echo "No changes to commit."
else
git commit -m "docs: auto update from skyve"
git push
fi