[CI] Setup github proxy for self_hosted runners (#4841)

### What this PR does / why we need it?
Setup github proxy for self_hosted runners

---------

Signed-off-by: wangli <wangli858794774@gmail.com>
This commit is contained in:
Li Wang
2025-12-09 20:35:43 +08:00
committed by GitHub
parent c331503677
commit 4813cefc58
2 changed files with 8 additions and 0 deletions

View File

@@ -44,6 +44,10 @@ jobs:
e2e_tracker: ${{ steps.filter.outputs.e2e_tracker }}
ut_tracker: ${{ steps.filter.outputs.ut_tracker }}
steps:
- name: Setup git proxy
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config --global url."https://gh-proxy.test.osinfra.cn/https://github.com/".insteadOf https://github.com/
# NOTE: Do not update the version of checkout, there have some issue on self_hosted runner with the higher version
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3

View File

@@ -49,6 +49,10 @@ jobs:
e2e_tracker: ${{ steps.filter.outputs.e2e_tracker }}
ut_tracker: ${{ steps.filter.outputs.ut_tracker }}
steps:
- name: Setup git proxy
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git config --global url."https://gh-proxy.test.osinfra.cn/https://github.com/".insteadOf https://github.com/
# NOTE: Do not update the version of checkout, there have some issue on self_hosted runner with the higher version
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3