From 972ab68e9614087a6692f5eea230930d21eaba51 Mon Sep 17 00:00:00 2001 From: reptil1990 Date: Fri, 6 Jun 2025 12:05:36 +0200 Subject: [PATCH] Action --- .github/workflows/sync-data.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/sync-data.yml diff --git a/.github/workflows/sync-data.yml b/.github/workflows/sync-data.yml new file mode 100644 index 0000000..d5f064c --- /dev/null +++ b/.github/workflows/sync-data.yml @@ -0,0 +1,28 @@ +name: Sync Folder to Another Repo + +on: + push: + paths: + - 'data/**' + +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout source repo + uses: actions/checkout@v3 + + - name: Copy folder and push to target repo + run: | + mkdir temp + cp -r data/* temp/ + cd temp + + git init + git config user.name "Gitea Action Bot" + git config user.email "action@gitea.local" + + git remote add origin https://${GITEA_TOKEN}@git.reptilfpv.de/reptil1990/AquaMasterFrontend + git add . + git commit -m "Sync data from source repo" + git push --force origin main