Change mirror to only run if a key is set
parent
76bdd554fb
commit
6fa4aca8a9
|
|
@ -3,13 +3,12 @@ name: Mirroring
|
||||||
on: [push, delete]
|
on: [push, delete]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
to_gitlab:
|
to_gitlab:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
if: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
|
||||||
- uses: actions/checkout@v1
|
steps:
|
||||||
- uses: pixta-dev/repository-mirroring-action@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
- uses: pixta-dev/repository-mirroring-action@v1
|
||||||
target_repo_url:
|
with:
|
||||||
git@gitlab.com:insert/revolt-vite.git
|
target_repo_url: git@gitlab.com:insert/revolt-vite.git
|
||||||
ssh_private_key:
|
ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
|
||||||
${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue