diff --git a/.github/workflows/push_gitlab.yml b/.github/workflows/push_gitlab.yml index ba198a1..cf0503d 100644 --- a/.github/workflows/push_gitlab.yml +++ b/.github/workflows/push_gitlab.yml @@ -22,10 +22,10 @@ jobs: git config --global user.name 'github-actions' git config --global user.email 'actions@github.com' - - name: Push to GitLab + - name: Add GitLab remote and push env: GITLAB_URL: ${{ secrets.GITLAB_URL }} GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }} run: | - git remote add gitlab $GITLAB_URL - git push gitlab main + git remote add gitlab https://oauth2:$GITLAB_TOKEN@$GITLAB_URL + git push -u gitlab main