Create mirror_to_gitlab.yml

This commit is contained in:
Jacob Schmieder
2023-12-07 13:04:51 +01:00
committed by GitHub
parent 28b314de8d
commit 7c8185e94b
+21
View File
@@ -0,0 +1,21 @@
name: Mirror and run GitLab CI
on: [push, delete]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Mirror + trigger CI
uses: SvanBoxel/gitlab-mirror-and-ci-action@master
with:
args: "https://git-dmz.thuenen.de/kida/i2-skills-beratungsstelle/scraibe"
env:
FOLLOW_TAGS: "false"
FORCE_PUSH: "false"
GITLAB_HOSTNAME: "git-dmz.thuenen.de"
GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }}
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} // Generate here: https://gitlab.com/profile/personal_access_tokens
GITLAB_PROJECT_ID: ${{ secrets.GITLAB_PROJECT_ID }} // https://gitlab.com/<namespace>/<repository>/edit
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} // https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret