-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 1.09 KB
/
clone.yml
File metadata and controls
34 lines (31 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Mirror and run GitLab CI
env:
GITLAB_USERNAME: ${{ secrets.GITLAB_USER }}
#https://imigitlab.uni-muenster.de/<namespace>/<repository>/edit
GITLAB_PROJECT_ID: "643"
NAMESPACE: "MeDIC/eyematics"
REPOSITORY: "eyematics-kds"
on:
push:
branches:
- master
workflow_dispatch: {} # manual dispatch
jobs:
mirror-to-gitlab:
runs-on: ubuntu-latest
steps:
- name: Change to default branch
run: git config --global init.defaultBranch master
- uses: actions/checkout@v4
with:
fetch-depth: '0' # shallow-clone push is not allowed
- name: Mirror + trigger CICD
uses: SvanBoxel/gitlab-mirror-and-ci-action@master
with:
args: "https://imigitlab.uni-muenster.de/$NAMESPACE/$REPOSITORY"
env:
FOLLOW_TAGS: "true"
FORCE_PUSH: "false"
GITLAB_HOSTNAME: "imigitlab.uni-muenster.de"
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} #Generate here: https://imigitlab.uni-muenster.de/profile/personal_access_tokens
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}