Add .gitea/workflows/mirror.yaml
Mirror to GitHub / mirror (push) Successful in 2s

This commit is contained in:
Moody6 committed 2026-10-19 12:12:35 +00:00
1 parent 43877cff0b
commit ae5bb484b3
1 file changed
+25
+25
View File
@@ -0,0 +1,25 @@
name: Mirror to GitHub
on:
push:
workflow_dispatch:
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Mirror repository
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
set -eu
git clone --mirror \
https://git.pynixworld.com/PyNix/PyNix-Website.git \
mirror.git
git -C mirror.git \
-c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$GH_TOKEN" | base64 | tr -d '\n')" \
push --mirror \
https://github.com/tafakkur/PyNix-Website.git