From 904040b58f337cb94b1a7df8726a802d90e2a1c4 Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Fri, 2 Aug 2024 10:46:08 +0200 Subject: [PATCH] github: change mirroring action --- .github/workflows/mirror.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 46a1b57a29e..d4d1ea500f8 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,18 +1,21 @@ -name: Mirroring to Gitlab +name: Mirror and run GitLab CI -on: [push, delete, pull_request] +on: [push] jobs: to_gitlab: runs-on: ubuntu-latest - if: github.repository == 'dcache/dcache' steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: pixta-dev/repository-mirroring-action@v1 - with: - target_repo_url: - git@gitlab.desy.de:dcache/dcache.git - ssh_private_key: - ${{ secrets.REPOSYNC_SSH_PRIVATE_KEY }} + - uses: actions/checkout@v4 + - name: Mirror + trigger CI + uses: SvanBoxel/gitlab-mirror-and-ci-action@master + with: + args: "https://gitlab.desy.de/dcache/dcache" + env: + FOLLOW_TAGS: "false" + FORCE_PUSH: "false" + GITLAB_HOSTNAME: "gitlab.desy.de" + GITLAB_USERNAME: "svboxel" + GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} + GITLAB_PROJECT_ID: "21" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}