Merge pull request #318 from dbear496/version-broadcast #12
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 to GitLab | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| tags: | |
| - '**' | |
| workflow_dispatch: | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Install GitLab deploy key | |
| uses: webfactory/ssh-agent@v0.9.0 | |
| with: | |
| ssh-private-key: ${{ secrets.RETROSHARE_GITLAB_MIRROR_SSH_KEY }} | |
| - name: Trust GitLab host key | |
| run: | | |
| ssh-keyscan gitlab.com >> ~/.ssh/known_hosts | |
| - name: Mirror repository to GitLab | |
| run: | | |
| git clone --mirror "https://github.com/${GITHUB_REPOSITORY}.git" repo.git | |
| cd repo.git | |
| git remote set-url --push origin git@gitlab.com:RetroShare/libretroshare.git | |
| git push --mirror |