diff --git a/.gitea/workflows/sync-public.yml b/.gitea/workflows/sync-public.yml index ced569a..42791a4 100644 --- a/.gitea/workflows/sync-public.yml +++ b/.gitea/workflows/sync-public.yml @@ -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)"