This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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
|
||||
Reference in New Issue
Block a user