Skip to content

Commit 2639453

Browse files
authored
Replace GITLAB_PASSWORD with GITLAB_PUSH_TOKEN
1 parent eb63191 commit 2639453

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/sync.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ jobs:
113113
env:
114114
GITLAB_USERNAME: ${{ secrets.GITLAB_USERNAME }}
115115
GITLAB_USERMAIL: ${{ secrets.GITLAB_USERMAIL }}
116-
GITLAB_PASSWORD: ${{ secrets.GITLAB_PASSWORD }}
116+
GITLAB_PUSH_TOKEN: ${{ secrets.GITLAB_PUSH_TOKEN }}
117117
run: |
118118
export REPO_NAME=$(basename "${{ matrix.REPO_URL }}" .git)
119119
export GITLAB_REPO=${{ matrix.GITLAB_REPO }}
@@ -126,7 +126,7 @@ jobs:
126126
cd $REPO_NAME.git
127127
git config user.name $GITLAB_USERNAME
128128
git config user.email $GITLAB_USERMAIL
129-
git remote add gitlab https://$GITLAB_USERNAME:$GITLAB_PASSWORD@gitlab.com/mirrors_git/$GITLAB_REPO.git
129+
git remote add gitlab https://$GITLAB_USERNAME:$GITLAB_PUSH_TOKEN@gitlab.com/mirrors_git/$GITLAB_REPO.git
130130
git push gitlab --all
131131
visiable:
132132
needs: sync
@@ -135,9 +135,9 @@ jobs:
135135
steps:
136136
- name: Change Project Visiable
137137
env:
138-
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
138+
GITLAB_VISIABLE_TOKEN: ${{ secrets.GITLAB_VISIABLE_TOKEN }}
139139
run: |
140-
TOKEN="$GITLAB_TOKEN"
140+
TOKEN="$GITLAB_VISIABLE_TOKEN"
141141
GITLAB_URL="https://gitlab.com"
142142
GROUP_ID="77318098"
143143

0 commit comments

Comments
 (0)