-
Notifications
You must be signed in to change notification settings - Fork 10
25 lines (23 loc) · 968 Bytes
/
main.yml
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
name: Mirror to GitLab and run GitLab CI
on:
push:
branches:
- master # Adjust the branch name as needed 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Mirror + trigger CI
uses: SvanBoxel/gitlab-mirror-and-ci-action@master # Use the correct version tag
with:
args: "https://gitlab.cern.ch/osu-cms/DisappTrks"
env:
FOLLOW_TAGS: "false"
FORCE_PUSH: "false"
GITLAB_HOSTNAME: "gitlab.cern.ch"
GITLAB_USERNAME: "micarrig"
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} # Generate here: https://gitlab.com/profile/personal_access_tokens
GITLAB_PROJECT_ID: "156137" # https://gitlab.cern.ch/MilliQan/milliqanOffline
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret