From ca926870af8a9b87e52e066659f75cdbd93ab0f5 Mon Sep 17 00:00:00 2001 From: Hobbabobba Date: Tue, 16 Sep 2025 22:44:35 +0200 Subject: [PATCH] Update mirror.yml --- .github/workflows/mirror.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 446fcb2..1491a2f 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -2,18 +2,18 @@ name: Mirror to Gitea on: push: branches: - - main # Passe den Branch an, den du spiegeln willst + - main jobs: mirror: runs-on: ubuntu-latest steps: - # Schritt 1: Repo als Mirror klonen - - name: Clone repo as mirror - run: | - git clone --mirror https://github.com/Hobbabobba/keyserver.git repo + - name: Remove old repo folder + run: rm -rf repo + + - name: Clone repo as mirror + run: git clone --mirror https://github.com/Hobbabobba/keyserver.git repo - # Schritt 2: Push zum Gitea-Repo - name: Push to Gitea env: GITEA_USER: ${{ secrets.GITEA_USER }} @@ -22,4 +22,3 @@ jobs: cd repo git remote set-url origin https://${GITEA_USER}:${GITEA_TOKEN}@git.nauheimtech.de/StefanMewes/keyserver.git git push --mirror -