[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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user