mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #2129] automatically detect .env file in directory #1014
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1014
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Glydric on GitHub (Dec 16, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/2129
Act version
0.2.55
Feature description
It will be good it it automatically detects the env file in current directory and loads it
@weyert commented on GitHub (Dec 17, 2023):
Is this normal behaviour of Github Actions?
If not, I think it's better to use some special named
.envforactto avoid unexpected behaviour when writing workflows.@Glydric commented on GitHub (Dec 17, 2023):
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
@ChristopherHX commented on GitHub (Dec 17, 2023):
Loading the file
.envis default behavior and is working for me.Is this issue that it somehow doesn't work for you?
@ChristopherHX commented on GitHub (Dec 17, 2023):
Obviously if you want to use secrets instead of env the name is
.secretsby default.@Glydric commented on GitHub (Dec 17, 2023):
@ChristopherHX Yes, the .secret file is automatically detected. Good
@ChristopherHX commented on GitHub (Sep 26, 2024):
not planned, since working as designed