SpicyPizza/create-envfile

env file not being created / GITHUB_WORKSPACE not set

speclechris opened this issue · 9 comments

name: Create envfile

on: [ push ]

jobs:
  create-envfile:
    runs-on: ubuntu-latest
    steps:
    - name: Make envfile
      uses: SpicyPizza/create-envfile@v1.3
      with:
        envkey_SOMETHING: something

I expected this to create the env file within my project directory e.g. /home/runner/work/application-name/application-name/.env

But I get the following:
Creating file: /github/workspace/.env

Only thing I can guess is GITHUB_WORKSPACE isn't set and it's defaulting to this path?
path = str(os.getenv("GITHUB_WORKSPACE", "/github/workspace"))

I have the same issue. how can we configure the path? Directory property seems to not be able to overwrite the full path

I have the same issue, any solution so far ?

me 2

me too

Same issue here

Same issue here!

I recommend using the version SpicyPizza/create-envfile@v1.2

Same issue here!

This should be resolved in v2.0.1 but do mention if the issue still persists!