From 83d591f0a22536d4749cedc8fda8bc191086f286 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 | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index 46a1b57a29e..55a14cf34dd 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,18 +1,23 @@ -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 + with: + fetch-depth: 0 + - name: Mirror + trigger CI + uses: SvanBoxel/gitlab-mirror-and-ci-action@0.6 + with: + args: "https://gitlab.desy.de/dcache/dcache" + env: + FOLLOW_TAGS: "false" + FORCE_PUSH: "false" + GITLAB_HOSTNAME: "gitlab.desy.de" + GITLAB_USERNAME: "dcache" + GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} + GITLAB_PROJECT_ID: "21" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}