From 1dd0aeee9f6faba573dcbfd08555ee1ec1c89777 Mon Sep 17 00:00:00 2001 From: "Eshan Roy (Eshanized)" <148610067+eshanized@users.noreply.github.com> Date: Tue, 18 Jun 2024 04:28:06 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(mirror):=20gitlab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gitlab.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gitlab.yml b/.github/workflows/gitlab.yml index eca4115..3f0c725 100644 --- a/.github/workflows/gitlab.yml +++ b/.github/workflows/gitlab.yml @@ -1,4 +1,4 @@ -name: Push to GitLab +name: Mirror to GitLab on: push: @@ -6,16 +6,17 @@ on: - master jobs: - deploy: + mirror: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2.3.3 - - name: Push to GitLab + - name: Mirror to GitLab env: GITLAB_REPO: ${{ secrets.GITLAB_REPO }} GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }} GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} run: | - git remote add gitlab https://gitlab.com/snigdhaos/snigdhaos-arctic.git - git push gitlab master \ No newline at end of file + git remote add gitlab https://${GITLAB_USERNAME}:${GITLAB_PASSWORD}@${GITLAB_REPO##*/}.git + git config --global push.default mirror + git push --mirror gitlab \ No newline at end of file