Changed lines of code badge #225
Workflow file for this run
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: Mirroring | |
on: [push, delete] | |
jobs: | |
mirror_to_gitlab: | |
runs-on: ubuntu-latest | |
steps: # <-- must use actions/checkout before mirroring! | |
- uses: actions/checkout@v3 | |
with: | |
lfs: 'true' | |
- name: checkoutLFS | |
uses: actions/checkout@v2 # <-- Do checkout of LFS elements | |
- run: git lfs fetch --all | |
- run: git lfs pull | |
- run: git lfs pull origin | |
- run: git fetch --unshallow | |
- run: mkdir -p ~/.ssh | |
- run: touch ~/.ssh/config | |
- run: echo 'Host *' | tee -a ~/.ssh/config | |
- run: echo 'ServerAliveInterval 30' | tee -a ~/.ssh/config | |
- run: echo 'ServerAliveCountMax 1200' | tee -a ~/.ssh/config | |
- run: echo 'TCPKeepAlive yes' | tee -a ~/.ssh/config | |
- run: git lfs fetch --all | |
- run: git lfs pull | |
- uses: pixta-dev/repository-mirroring-action@v1 | |
with: | |
target_repo_url: | |
[email protected]:AleixMT/Linux-Auto-Customizer.git | |
ssh_private_key: # <-- use 'secrets' to pass credential information. | |
${{ secrets.GITLAB_SSH_PRIVATE_KEY }} | |
mirror_to_organization: | |
runs-on: ubuntu-latest | |
steps: # <-- must use actions/checkout before mirroring! | |
- uses: actions/checkout@v3 | |
with: | |
lfs: 'true' | |
- name: checkoutLFS | |
uses: actions/checkout@v2 # <-- Do checkout of LFS elements | |
- run: git lfs fetch --all | |
- run: git lfs pull | |
- run: git lfs pull origin | |
- run: git fetch --unshallow | |
- run: mkdir -p ~/.ssh | |
- run: touch ~/.ssh/config | |
- run: echo 'Host *' | tee -a ~/.ssh/config | |
- run: echo 'ServerAliveInterval 30' | tee -a ~/.ssh/config | |
- run: echo 'ServerAliveCountMax 1200' | tee -a ~/.ssh/config | |
- run: echo 'TCPKeepAlive yes' | tee -a ~/.ssh/config | |
- run: git lfs fetch --all | |
- run: git lfs pull | |
- uses: pixta-dev/repository-mirroring-action@v1 | |
with: | |
target_repo_url: | |
[email protected]:Gua-tk/Linux-Auto-Customizer.git | |
ssh_private_key: # <-- use 'secrets' to pass credential information. | |
${{ secrets.GITLAB_SSH_PRIVATE_KEY }} # <-- the corresponding public key is also stored in github, not only gitlab, so they can use the same private token |