Create mirror runner
Mirror to GitHub / mirror (push) Successful in 3s

This commit is contained in:
Moody6 committed 2026-10-19 11:35:38 +00:00
1 parent 5aad393fe7
commit eca59ae431
1 file changed
+26
+26
View File
@@ -0,0 +1,26 @@
name: Mirror to GitHub
on:
push:
branches:
- main
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- name: Push repository to GitHub
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
set -eu
git clone --bare \
https://oauth2:${GH_TOKEN}@github.com/tafakkur/PyNix-Website.git \
mirror.git
cd mirror.git
git fetch --prune \
https://oauth2:${GH_TOKEN}@github.com/tafakkur/PyNix-Website.git \
'+refs/heads/*:refs/heads/*'
git push --mirror \
https://oauth2:${GH_TOKEN}@github.com/tafakkur/PyNix-Website.git