Update mirror.yml
This commit is contained in:
@@ -2,18 +2,18 @@ name: Mirror to Gitea
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main # Passe den Branch an, den du spiegeln willst
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
mirror:
|
mirror:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Schritt 1: Repo als Mirror klonen
|
- name: Remove old repo folder
|
||||||
- name: Clone repo as mirror
|
run: rm -rf repo
|
||||||
run: |
|
|
||||||
git clone --mirror https://github.com/Hobbabobba/keyserver.git 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
|
- name: Push to Gitea
|
||||||
env:
|
env:
|
||||||
GITEA_USER: ${{ secrets.GITEA_USER }}
|
GITEA_USER: ${{ secrets.GITEA_USER }}
|
||||||
@@ -22,4 +22,3 @@ jobs:
|
|||||||
cd repo
|
cd repo
|
||||||
git remote set-url origin https://${GITEA_USER}:${GITEA_TOKEN}@git.nauheimtech.de/StefanMewes/keyserver.git
|
git remote set-url origin https://${GITEA_USER}:${GITEA_TOKEN}@git.nauheimtech.de/StefanMewes/keyserver.git
|
||||||
git push --mirror
|
git push --mirror
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user