Change mirror to only run if a key is set

pull/1049/head
brecert 2021-09-14 00:22:16 -04:00
parent 76bdd554fb
commit 6fa4aca8a9
1 changed files with 9 additions and 10 deletions

View File

@ -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 }}