setup-python failing due to missing cache directory

Description:
This job on my repo has been failing since #303 was merged in. Only the python 11 alpha variant is failing due to a cache related issue for pip. It fails in the Post Setup Python stage.

Action version: master

Platform:

  • Ubuntu
  • macOS
  • [ x] Windows

Runner type:

  • [x ] Hosted
  • Self-hosted

Tools version:

python 3.11.0-alpha

Repro steps:
Run any pipeline with python 3.11.0-alpha on windows.

Expected behavior:
The job should succeed.

The job fails on Post Setup Python