name: Mirror Repo on: schedule: # nightly (0th hour 0th minute of every day) - cron: '0 0 * * *' jobs: build: runs-on: ubuntu-latest steps: - name: Mirror run: | git clone --mirror 'https://git.yellowsquid.uk/yellowsquid/chomp.git' cd chomp.git/ git remote add github "https://$GITHUB_ACTOR@github.com/$GITHUB_REPOSITORY.git" git push --mirror github env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}