diff --git a/.github/workflows/gitlab.yml b/.github/workflows/gitlab.yml new file mode 100644 index 00000000..43c7a2d8 --- /dev/null +++ b/.github/workflows/gitlab.yml @@ -0,0 +1,18 @@ +name: Backup to gitlab + +on: [push, delete] + +jobs: + to_gitlab: + runs-on: ubuntu-latest + + if: ${{ startsWith(github.repository, 'sendsay-ru') }} + + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: git@gitlab.sndsy.ru:sendsay-ru/sendsay-docs.git + ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}