This commit is contained in:
2025-06-06 12:05:36 +02:00
parent b17baaab9a
commit 972ab68e96

28
.github/workflows/sync-data.yml vendored Normal file
View File

@@ -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