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