Skip to content

Commit 194e75b

Browse files
committed
update origin setting
1 parent 5aa2231 commit 194e75b

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/merge-trigger-tke.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,10 @@ jobs:
207207
208208
- name: Prepare Data in cn-0
209209
timeout-minutes: 5
210+
env:
211+
TOKEN_ACTION: ${{ secrets.TOKEN_ACTION }}
210212
run: |
211-
kubectl exec -it ${{ steps.get_mo_addr.outputs.cn_0 }} -n mo-checkin-regression-${{ github.event.pull_request.number }} -- env GITHUB_WORKSPACE=$GITHUB_WORKSPACE bash -c '
213+
kubectl exec -it ${{ steps.get_mo_addr.outputs.cn_0 }} -n mo-checkin-regression-${{ github.event.pull_request.number }} -- env GITHUB_WORKSPACE=$GITHUB_WORKSPACE TOKEN_ACTION="$TOKEN_ACTION" bash -c '
212214
set -x;
213215
export https_proxy=http://proxy-service.proxy.svc.cluster.local:8001
214216
git config --global init.defaultBranch main
@@ -219,7 +221,7 @@ jobs:
219221
mkdir $path_matrixone/matrixone;
220222
git config --global --add safe.directory $path_matrixone/matrixone;
221223
cd $path_matrixone/matrixone && git init;
222-
git remote add origin https://github.com/matrixorigin/matrixone.git;
224+
git remote add origin https://x-access-token:${TOKEN_ACTION}@github.com/${{ github.repository }}.git;
223225
git config --local gc.auto 0;
224226
timeout 120 git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +${{ github.sha }}:refs/remotes/origin/${{ github.ref_name }}
225227
git checkout --progress --force -B ${{ github.ref_name }} refs/remotes/origin/${{ github.ref_name }}
@@ -242,8 +244,10 @@ jobs:
242244
'
243245
- name: Prepare Data in cn-1
244246
timeout-minutes: 5
247+
env:
248+
TOKEN_ACTION: ${{ secrets.TOKEN_ACTION }}
245249
run: |
246-
kubectl exec -it ${{ steps.get_mo_addr.outputs.cn_1 }} -n mo-checkin-regression-${{ github.event.pull_request.number }} -- env GITHUB_WORKSPACE=$GITHUB_WORKSPACE bash -c '
250+
kubectl exec -it ${{ steps.get_mo_addr.outputs.cn_1 }} -n mo-checkin-regression-${{ github.event.pull_request.number }} -- env GITHUB_WORKSPACE=$GITHUB_WORKSPACE TOKEN_ACTION="$TOKEN_ACTION" bash -c '
247251
set -x;
248252
export https_proxy=http://proxy-service.proxy.svc.cluster.local:8001
249253
git config --global init.defaultBranch main
@@ -254,7 +258,7 @@ jobs:
254258
mkdir $path_matrixone/matrixone;
255259
git config --global --add safe.directory $path_matrixone/matrixone;
256260
cd $path_matrixone/matrixone && git init;
257-
git remote add origin https://github.com/matrixorigin/matrixone.git;
261+
git remote add origin https://x-access-token:${TOKEN_ACTION}@github.com/${{ github.repository }}.git;
258262
git config --local gc.auto 0;
259263
timeout 120 git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +${{ github.sha }}:refs/remotes/origin/${{ github.ref_name }}
260264
git checkout --progress --force -B ${{ github.ref_name }} refs/remotes/origin/${{ github.ref_name }}

0 commit comments

Comments
 (0)