Version Packages (#378) #6
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
| # Mirrors to https://tangled.sh/@kitten.sh (knot.kitten.sh) | |
| name: Mirror (Git Backup) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Mirror | |
| env: | |
| MIRROR_SSH_KEY: ${{ secrets.MIRROR_SSH_KEY }} | |
| GIT_SSH_COMMAND: 'ssh -o StrictHostKeyChecking=yes' | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "$MIRROR_SSH_KEY" > ~/.ssh/id_rsa | |
| chmod 600 ~/.ssh/id_rsa | |
| ssh-keyscan -H knot.kitten.sh >> ~/.ssh/known_hosts | |
| git remote add mirror "[email protected]:kitten.sh/graphqlsp" | |
| git push --mirror mirror |