Change mirror to only run if a key is set

This commit is contained in:
brecert 2021-09-14 00:22:16 -04:00
parent 12547ba0fe
commit 951a773b2c
No known key found for this signature in database
GPG key ID: 1B2E56B9EC985B96

View file

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