diff --git a/.github/workflows/gitlab.yml b/.github/workflows/gitlab.yml index 24a9586..e235573 100644 --- a/.github/workflows/gitlab.yml +++ b/.github/workflows/gitlab.yml @@ -14,9 +14,8 @@ jobs: - name: Push to GitLab env: GITLAB_REPO: ${{ secrets.GITLAB_REPO }} - GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} + GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }} + GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }} run: | - git remote add gitlab https://gitlab.com/snigdhaos/snigdhaos-arctic.git - git config user.name "GitHub Actions" - git config user.email "actions@github.com" - git push gitlab master + git remote add gitlab https://${GITLAB_USERNAME}:${GITLAB_PASSWORD}@${GITLAB_REPO##*/}.git + git push gitlab master \ No newline at end of file