From e5f71d3e0faa2d08a3f3ab2cb8e5f19a8619bab0 Mon Sep 17 00:00:00 2001 From: aka paul <50n50@noreply.localhost> Date: Thu, 16 Apr 2026 16:09:28 +0000 Subject: [PATCH] Add .gitea/workflows/library.yml --- .gitea/workflows/library.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/library.yml diff --git a/.gitea/workflows/library.yml b/.gitea/workflows/library.yml new file mode 100644 index 0000000..23cbab6 --- /dev/null +++ b/.gitea/workflows/library.yml @@ -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 \ No newline at end of file