Mirror repos #3505
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mirror repos | |
on: | |
push: | |
schedule: | |
- cron: "0 * * * *" | |
workflow_dispatch: | |
jobs: | |
mirror: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Authenticate with GitHub | |
run: | | |
git config --global credential.helper store | |
echo "https://x-access-token:${{ secrets.GH_PAT }}@github.com" > ~/.git-credentials | |
git config --global url.https://github.com/.insteadOf ssh://[email protected]: | |
git config --global url.https://github.com/.insteadOf [email protected]: | |
- name: Run the mirror script | |
run: python mirror.py |