1 parent
5aad393fe7
commit
eca59ae431
1 file changed
+26
@@ -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
|
||||
Reference in new issue
Block a user