From 2a5d4500cb93e8c8c2bf3f53cf4f5ce25d120ae5 Mon Sep 17 00:00:00 2001 From: cy Date: Fri, 3 Jan 2025 00:48:11 -0500 Subject: [PATCH] gh action to mirror to gitlab --- .github/workflows/mirror.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..2e4d52f --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,21 @@ +name: mirror to gitlab + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: mirror + uses: SvanBoxel/gitlab-mirror-and-ci-action@5c211f993d35256d96b772d995972f434b94e11a + with: + args: "https://git.cything.io/cy/infra" + env: + FOLLOW_TAGS: "true" + FORCE_PUSH: "false" + GITLAB_HOSTNAME: "git.cything.io" + GITLAB_USERNAME: "cy" + GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} + GITLAB_PROJECT_ID: "2" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}