From 83139ff6486af54491a00d9d0826aac303991559 Mon Sep 17 00:00:00 2001 From: l-bick <43580954+l-bick@users.noreply.github.com> Date: Thu, 16 May 2024 11:42:00 +0200 Subject: [PATCH] Upload GitLab-Mirroring --- .github/workflows/gitlab-mirror-actions.yml | 29 +++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/gitlab-mirror-actions.yml diff --git a/.github/workflows/gitlab-mirror-actions.yml b/.github/workflows/gitlab-mirror-actions.yml new file mode 100644 index 0000000..96527d5 --- /dev/null +++ b/.github/workflows/gitlab-mirror-actions.yml @@ -0,0 +1,29 @@ +name: Mirror and run GitLab CI + +on: + push: + branches: + - main + workflow_dispatch: {} # manual dispatch + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Change to default branch + run: git config --global init.defaultBranch main + - uses: actions/checkout@v4 + with: + fetch-depth: '1' + - name: Mirror + trigger CICD + uses: SvanBoxel/gitlab-mirror-and-ci-action@master + with: + args: "https://imigitlab.uni-muenster.de/${{ secrets.NAMESPACE }}/rlign" + env: + FOLLOW_TAGS: "false" + 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 }} + GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }} + GITLAB_PROJECT_ID: ${{ secrets.GITLAB_PROJECT_ID }} \ No newline at end of file