26 lines
593 B
YAML
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
|