Skip to content

Commit b0f592d

Browse files
authored
Merge pull request #235 from opsmill/jbr-fix-ci-repository
fix ci for repository
2 parents 6a00e5e + 68f00c6 commit b0f592d

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)