SpicyPizza/create-envfile

FileNotFoundError

Ariseaz opened this issue · 3 comments

Traceback (most recent call last):
File "/create-envfile.py", line 22, in
with open(os.path.join(path, directory, file_name), "w") as text_file:
FileNotFoundError: [Errno 2] No such file or directory: 'None/***/.env'

Hi @Ariseaz, with the new version you need to put the Github action path before your directory.

directory: /github/workspace/{{YOUR_DIRECTORY}}

Looks like this will be in the next release, but what worked for me today was directory: ${{ github.workspace }}