Sync Repo to SourceHut #2760
This file contains 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: Sync Repo to SourceHut | |
on: [push, delete] | |
jobs: | |
# repo-sync: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: repo-sync | |
# uses: wei/git-sync@v2 | |
# with: | |
# source_repo: "[email protected]:vs4vijay/lazykubectl.git" | |
# source_branch: "refs/remotes/source/*" | |
# destination_repo: "[email protected]:~vs4vijay/lazykubectl" | |
# destination_branch: "refs/heads/*" | |
# ssh_private_key: ${{ secrets.SOURCEHUT_SSH_KEY }} | |
to-sourcehut: | |
runs-on: ubuntu-18.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: pixta-dev/repository-mirroring-action@v1 | |
with: | |
target_repo_url: | |
[email protected]:~vs4vijay/lazykubectl | |
ssh_private_key: | |
${{ secrets.SOURCEHUT_SSH_KEY }} | |