Mirror org repo to personal repo #32
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 org repo to personal repo | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone source repository | |
| run: | | |
| git clone --mirror https://x-access-token:${{ secrets.MIRROR_TOKEN }}@github.com/nushdev/nush-app-vue.git repo | |
| - name: Push to mirror repository | |
| run: | | |
| cd repo | |
| git remote set-url origin https://x-access-token:${{ secrets.MIRROR_TOKEN }}@github.com/Spleefies/nush-app-vue-mirror.git | |
| git push --mirror |