From 951a773b2cfd4425ad8b13bd9a1526870838acf6 Mon Sep 17 00:00:00 2001 From: brecert Date: Tue, 14 Sep 2021 00:22:16 -0400 Subject: [PATCH] Change mirror to only run if a key is set --- .github/workflows/mirroring.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/mirroring.yml b/.github/workflows/mirroring.yml index 096a64f9..3f1d27fa 100644 --- a/.github/workflows/mirroring.yml +++ b/.github/workflows/mirroring.yml @@ -3,13 +3,12 @@ name: Mirroring on: [push, delete] jobs: - to_gitlab: - runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v1 - - uses: pixta-dev/repository-mirroring-action@v1 - with: - target_repo_url: - git@gitlab.com:insert/revolt-vite.git - ssh_private_key: - ${{ secrets.GITLAB_SSH_PRIVATE_KEY }} + to_gitlab: + runs-on: ubuntu-18.04 + if: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }} + steps: + - uses: actions/checkout@v1 + - uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: git@gitlab.com:insert/revolt-vite.git + ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}