Skip to content

Commit 7fd18b5

Browse files
authored
Fix proxy setting in backend workflow (#2650)
1 parent dabde2f commit 7fd18b5

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/backend-test.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
ssh-key: ${{ secrets.RUNNER_SSH_KEY }}
6262
- name: Setup FlagGems
6363
shell: bash
64+
env:
65+
RUNNER_LABEL: ${{ inputs.runner_label }}
6466
run: |
6567
if [[ "${RUNNER_LABEL}" != "h20" ]]; then
6668
export HTTP_PROXY="http://10.1.12.38:38002"
@@ -84,6 +86,5 @@ jobs:
8486
shell: bash
8587
env:
8688
CHANGED_FILES: ${{ inputs.changed_files }}
87-
RUNNER_LABEL: ${{ inputs.runner_label }}
8889
run: |
8990
tools/test-op.sh ${{ inputs.pr_id }}

setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ else
9999
source .venv/bin/activate
100100
fi
101101

102-
printf "HTTPS_PROXY=${https_proxy}\n"
103-
printf "HTTP_PROXY=${http_proxy}\n"
102+
printf "HTTPS_PROXY=${HTTPS_PROXY}\n"
103+
printf "HTTP_PROXY=${HTTP_PROXY}\n"
104104

105105
# Install FlagGems
106106
export FLAGOS_PYPI="https://resource.flagos.net/repository/flagos-pypi-${VENDOR}/simple"

0 commit comments

Comments
 (0)