Update .gitea/workflows/sync-public.yml
Sync public mirror / sync (push) Successful in 1m1s

This commit is contained in:
2025-10-06 21:15:34 +02:00
parent ab76cbbe0f
commit 6a01b0afe5
+3 -8
View File
@@ -1,17 +1,15 @@
name: Sync public mirror
on:
push:
branches: [ main ] # change if your default branch is different
branches: [ main ]
jobs:
sync:
runs-on: ubuntu-latest
container: alpine:3.20 # small & fast container; reduces system load
steps:
- name: Install tools (bash, rsync, git, openssh)
- name: Install tools (rsync)
run: |
apk add --no-cache bash rsync git openssh-client
sudo apt-get update && sudo apt-get install -y rsync
- name: Checkout private repo
uses: actions/checkout@v4
@@ -35,16 +33,13 @@ jobs:
- name: Sync files (snapshot, safe)
run: |
# Copy into public working tree and delete removed files
rsync -a --delete \
--exclude '.git' \
--exclude '.gitea' \
./ /tmp/public/
cd /tmp/public
git config user.name "Gitea CI"
git config user.email "ci@bausager.org"
if ! git diff --quiet; then
git add -A
git commit -m "Sync from Flux (private)"