Skip to content

Commit 6c5057f

Browse files
committed
fix ci for repository
1 parent efcf472 commit 6c5057f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@ jobs:
192192
python-version: "3.12"
193193
- name: "Set environment variables"
194194
run: |
195-
RUNNER_NUM=$(hostname | grep -o '[0-9][0-9]' | sed 's/^0*//')
196-
echo PYTEST_DEBUG_TEMPROOT=/var/lib/github/ghrunner_${RUNNER_NUM}/_temp >> $GITHUB_ENV
195+
RUNNER_NAME=$(echo "${{ runner.name }}" | grep -o 'ghrunner[0-9]\+' | sed 's/ghrunner\([0-9]\+\)/ghrunner_\1/')
196+
echo PYTEST_DEBUG_TEMPROOT=/var/lib/github/${RUNNER_NAME}/_temp >> $GITHUB_ENV
197197
- name: "Setup environment"
198198
run: |
199199
pipx install poetry==1.8.5

0 commit comments

Comments
 (0)