actions-marketplace-validations/Load .env file
Read .env file and export variables to $GITHUB_ENV
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Dec 2, 2024
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/aarcangeli_load-dotenv@e0ff70ae0e9d0af2e727d837c8209128811696a0 # no releases — HEAD as of 2026-07-22tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| path | The directory to find the '.env' file. Relative paths are resolved inside the workspace directory | no | . |
| filenames | Override the name of the file to load. Multiple files are allowed. | no | .env |
| quiet | If true, don't print variables to log | no | false |
| if-file-not-found | The desired behavior if the .env is not found using the provided path. Available Options: warn: Output a warning but do not fail the action error: Fail the action with an error message ignore: Do not output any warnings or errors, the action does not fail | no | error |
| expand | If true, expand variables in the .env file. For example, if the .env file contains `FOO=bar` and `BAR=$FOO`, the value of `BAR` will be `bar`. | no | false |
Outputs
no outputs