Skip to content

Commit 4a719bb

Browse files
author
Shivang Sharma
committed
Revert to username:PAT auth for GitLab push
1 parent 3b09174 commit 4a719bb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/mirror-to-gitlab.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ jobs:
2121
- name: Push to GitLab mirror
2222
env:
2323
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
24+
GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }}
2425
run: |
25-
git remote add gitlab "https://oauth2:${GITLAB_TOKEN}@gitlab.com/shivaCode-2/labview-for-containers.git" || true
26-
git remote set-url gitlab "https://oauth2:${GITLAB_TOKEN}@gitlab.com/shivaCode-2/labview-for-containers.git"
26+
git remote add gitlab "https://${GITLAB_USERNAME}:${GITLAB_TOKEN}@gitlab.com/shivaCode-2/labview-for-containers.git" || true
27+
git remote set-url gitlab "https://${GITLAB_USERNAME}:${GITLAB_TOKEN}@gitlab.com/shivaCode-2/labview-for-containers.git"
2728
git push gitlab main --force
2829
git push gitlab --tags --force

0 commit comments

Comments
 (0)