act icon indicating copy to clipboard operation
act copied to clipboard

automatically detect .env file in directory

Open Glydric opened this issue 2 years ago • 5 comments

Act version

0.2.55

Feature description

It will be good it it automatically detects the env file in current directory and loads it

Glydric avatar Dec 16 '23 10:12 Glydric

Is this normal behaviour of Github Actions?

If not, I think it's better to use some special named .env for act to avoid unexpected behaviour when writing workflows.

weyert avatar Dec 17 '23 00:12 weyert

Well, using a special name is also a good idea, I don't think GitHub actions do this as pushing .env files is of course a bad decision. But for local development it could be a good feature i guess

Glydric avatar Dec 17 '23 09:12 Glydric

Loading the file .env is default behavior and is working for me.

Is this issue that it somehow doesn't work for you?

ChristopherHX avatar Dec 17 '23 21:12 ChristopherHX

Obviously if you want to use secrets instead of env the name is .secrets by default.

ChristopherHX avatar Dec 17 '23 21:12 ChristopherHX

@ChristopherHX Yes, the .secret file is automatically detected. Good

Glydric avatar Dec 17 '23 21:12 Glydric