From 6be403d8b46a6974ce79b52117339d10961047df Mon Sep 17 00:00:00 2001 From: Mukilan Thiyagarajan Date: Mon, 16 Dec 2024 17:48:28 +0530 Subject: ci: fix wpt export job (#34640) The path to `.python-version` used by our setup-python action is relative to the current working directory, which is not the servo repo when WPT Export job runs. Fixes #34639. Signed-off-by: Mukilan Thiyagarajan --- .github/actions/setup-python/action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.github/actions/setup-python') diff --git a/.github/actions/setup-python/action.yml b/.github/actions/setup-python/action.yml index 9889c517e6b..4edd07d9ffc 100644 --- a/.github/actions/setup-python/action.yml +++ b/.github/actions/setup-python/action.yml @@ -1,5 +1,9 @@ name: Setup Python and uv inputs: + python-version-file-path: + required: false + description: "Path to the the .python-version file" + default: '.python-version' skip-python-setup: required: false description: "Whether to skip installing python using Github's `setup-python` action" @@ -13,7 +17,7 @@ runs: if: ${{ inputs.skip-python-setup != 'true' }} uses: actions/setup-python@v5 with: - python-version-file: '.python-version' + python-version-file: ${{ inputs.python-version-file-path }} - name: Install uv uses: astral-sh/setup-uv@v4 with: -- cgit v1.2.3