diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml deleted file mode 100644 index 07f6c2d..0000000 --- a/.github/workflows/mirror.yml +++ /dev/null @@ -1,21 +0,0 @@ -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 - shell: bash - run: | - if [[ "$GITHUB_REPOSITORY_OWNER" != "brave" ]]; then - git clone "https://github.com/brave/${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/}" - cd ${GITHUB_REPOSITORY#$GITHUB_REPOSITORY_OWNER/} - git remote add github "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" - git push -fu github main - fi - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}