From 1d21ca808e9637bf311cbfc3669de766f5359cac Mon Sep 17 00:00:00 2001 From: Hobbabobba Date: Wed, 17 Sep 2025 21:00:39 +0200 Subject: [PATCH] =?UTF-8?q?Action=20nur=20auf=20Github=20ausf=C3=BChren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/mirror.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 6ffc357..cc17498 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,15 +1,20 @@ name: Mirror to Gitea + on: push: branches: - - main # oder alle Branches weglassen, um alle Pushes zu spiegeln + - main # oder alle Branches, wenn du ALLES spiegeln willst jobs: mirror: + # läuft nur im Quell-Repo Hobbabobba/keyserver + if: github.repository == 'Hobbabobba/keyserver' runs-on: ubuntu-latest + steps: - - name: Checkout GitHub repo + - name: Clone GitHub repo as bare run: | + rm -rf repo git clone --bare https://github.com/Hobbabobba/keyserver.git repo - name: Push all branches and tags to Gitea @@ -19,7 +24,5 @@ jobs: run: | cd repo git remote add gitea https://${GITEA_USER}:${GITEA_TOKEN}@git.nauheimtech.de/StefanMewes/keyserver.git - # Push alle Branches git push gitea --all --force - # Push alle Tags git push gitea --tags --force