Files
Moody6 ae5bb484b3
Mirror to GitHub / mirror (push) Successful in 2s
Add .gitea/workflows/mirror.yaml
2026-10-19 12:12:35 +00:00

26 lines
593 B
YAML

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