Action nur auf Github ausführen
All checks were successful
Mirror to Gitea / mirror (push) Has been skipped
All checks were successful
Mirror to Gitea / mirror (push) Has been skipped
This commit is contained in:
11
.github/workflows/mirror.yml
vendored
11
.github/workflows/mirror.yml
vendored
@@ -1,15 +1,20 @@
|
|||||||
name: Mirror to Gitea
|
name: Mirror to Gitea
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main # oder alle Branches weglassen, um alle Pushes zu spiegeln
|
- main # oder alle Branches, wenn du ALLES spiegeln willst
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
mirror:
|
mirror:
|
||||||
|
# läuft nur im Quell-Repo Hobbabobba/keyserver
|
||||||
|
if: github.repository == 'Hobbabobba/keyserver'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout GitHub repo
|
- name: Clone GitHub repo as bare
|
||||||
run: |
|
run: |
|
||||||
|
rm -rf repo
|
||||||
git clone --bare https://github.com/Hobbabobba/keyserver.git repo
|
git clone --bare https://github.com/Hobbabobba/keyserver.git repo
|
||||||
|
|
||||||
- name: Push all branches and tags to Gitea
|
- name: Push all branches and tags to Gitea
|
||||||
@@ -19,7 +24,5 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd repo
|
cd repo
|
||||||
git remote add gitea https://${GITEA_USER}:${GITEA_TOKEN}@git.nauheimtech.de/StefanMewes/keyserver.git
|
git remote add gitea https://${GITEA_USER}:${GITEA_TOKEN}@git.nauheimtech.de/StefanMewes/keyserver.git
|
||||||
# Push alle Branches
|
|
||||||
git push gitea --all --force
|
git push gitea --all --force
|
||||||
# Push alle Tags
|
|
||||||
git push gitea --tags --force
|
git push gitea --tags --force
|
||||||
|
|||||||
Reference in New Issue
Block a user