Skip to content

Commit ae5422d

Browse files
committed
Clone typeshed into RUNNER_TEMP instead
1 parent 8a416b4 commit ae5422d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,11 @@ runs:
164164
if [[ "${install_typeshed_linters[*]}" =~ (^|[^[:alpha:]])${INPUTS_LINTER}([^[:alpha:]]|$) ]]; then
165165
echo "::debug::Installing typeshed for ${INPUTS_LINTER}"
166166
# clone from GitHub
167-
gh repo clone python/typeshed -- --depth 1 --branch "${INPUTS_TYPESHED_VERSION}" || ( echo "::error::typeshed failed to install for Python ${INPUTS_PYTHON_VERSION}" && exit 1 )
168-
EXTRA_LINTER_SCRIPT_FLAGS+=" --typeshed-path=${GITHUB_WORKSPACE}/typeshed"
167+
(
168+
cd ${RUNNER_TEMP}
169+
gh repo clone python/typeshed -- --depth 1 --branch "${INPUTS_TYPESHED_VERSION}" || ( echo "::error::typeshed failed to install for Python ${INPUTS_PYTHON_VERSION}" && exit 1 )
170+
)
171+
EXTRA_LINTER_SCRIPT_FLAGS+=" --typeshed-path=${RUNNER_TEMP}/typeshed"
169172
fi
170173
171174
# run linter

0 commit comments

Comments
 (0)