Skip to content

Commit

Permalink
github: change mirroring action
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Aug 2, 2024
1 parent 5658a7a commit 904040b
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -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:
[email protected]: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 }}

0 comments on commit 904040b

Please sign in to comment.