diff --git a/action.yml b/action.yml index 1243a30..fbd8ea8 100644 --- a/action.yml +++ b/action.yml @@ -27,7 +27,7 @@ runs: id: setup-python with: python-version: ${{ inputs.python-version }} - python-version-file: ${{ hashFiles('.python-version') == '' && '' || '.python-version' }} + python-version-file: ${{ hashFiles(format('{0}/.python-version', inputs.working-directory)) == '' && '' || format('{0}/.python-version', inputs.working-directory) }} - run: echo '::remove-matcher owner=python::' shell: bash @@ -54,4 +54,4 @@ runs: - run: ${{ inputs.install-cmd }} if: inputs.install-cmd != '' && steps.cache-venv.outputs.cache-hit != 'true' shell: bash - working-directory: ${{ inputs.working-directory }} \ No newline at end of file + working-directory: ${{ inputs.working-directory }}