Files
aka paul e5f71d3e0f
Fetch and Save Remote Content / fetch (push) Successful in 30s
Add .gitea/workflows/library.yml
2026-04-16 16:09:28 +00:00

27 lines
703 B
YAML

name: Fetch and Save Remote Content
on:
push: # triggers on every commit to any branch
workflow_dispatch:
jobs:
fetch:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Fetch content with curl
run: |
mkdir -p .tools
curl -s "https://library.cufiy.net/api/modules.min.json" -o .tools/library.json
- name: Commit and push file
run: |
git config user.name "Gitea Actions Bot"
git config user.email "actions@gitea.local"
git add .tools/library.json
git commit -m "chore: update library.json" || echo "No changes to commit"
git push