{"id":14007125,"url":"https://github.com/xom9ikk/dotenv","last_synced_at":"2025-07-21T07:06:42.142Z","repository":{"id":48410686,"uuid":"319053756","full_name":"xom9ikk/dotenv","owner":"xom9ikk","description":"GitHub Action to read .env file and add variables to GITHUB_ENV","archived":false,"fork":false,"pushed_at":"2024-05-31T22:18:48.000Z","size":138,"stargazers_count":57,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T15:40:52.729Z","etag":null,"topics":["actions","dotenv","env","environment","github","node"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/simple-dotenv","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xom9ikk.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-06T14:33:41.000Z","updated_at":"2025-06-16T18:55:34.000Z","dependencies_parsed_at":"2024-03-08T13:25:12.033Z","dependency_job_id":"4156c49d-7e74-486c-a55b-20ef4ed4df97","html_url":"https://github.com/xom9ikk/dotenv","commit_stats":{"total_commits":19,"total_committers":7,"mean_commits":"2.7142857142857144","dds":0.368421052631579,"last_synced_commit":"b7151ab166f13bcd36bd817c4f9afc21f175e7a7"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/xom9ikk/dotenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xom9ikk%2Fdotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xom9ikk%2Fdotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xom9ikk%2Fdotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xom9ikk%2Fdotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xom9ikk","download_url":"https://codeload.github.com/xom9ikk/dotenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xom9ikk%2Fdotenv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266222295,"owners_count":23894993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","dotenv","env","environment","github","node"],"created_at":"2024-08-10T10:01:50.560Z","updated_at":"2025-07-21T07:06:42.118Z","avatar_url":"https://github.com/xom9ikk.png","language":"TypeScript","readme":"# dotenv@v2.3.0\n\u003e GitHub Action to read .env file and add variables to GITHUB_ENV\n\n## 🔥 Usage\n```yaml\n- name: Load .env file\n  uses: xom9ikk/dotenv@v2.3.0\n  with:\n    path: custom/path/to/folder/with/env\n    mode: development\n    load-mode: strict\n\n- name: Some other action\n  run: |\n    echo \"Variable 1: ${{ env.VARIABLE_1 }}\"\n    echo \"Variable 2: ${{ env.VARIABLE_2 }}\"\n    echo \"Variable 3: ${{ env.VARIABLE_3 }}\"\n```\n\n## ✨ Features\n* ⛳ ability to specify the path to the folder;\n* 🎨 setup mode;\n* 💎 simple API;\n* 🍃 variable expansion;\n\n## 💡 Input\n\n| property | isRequired | default | comment                                                                                                      | example\n|----------|:----------:|:-------:|----------------------------------------------------|:--------:\n| `path` |     x      | ./      | path to the folder where the .env file is located. | ./custom/path/to/folder/with/env\n| `mode`   |     x      | `empty` | mode for loading the .env file.                       | test\n| `load-mode` |    x    | `strict` | sets whether the program should fail when the .env file is not present (`strict`) or continue (`skip`) | skip|\n\n## 🧩 Notes\nThis action is built on top of the [dotenv](https://github.com/motdotla/dotenv) and [dotenv-expand](https://github.com/motdotla/dotenv-expand) libraries.\nWhen starting the action, the file is read from the target folder in the `path` property and using the mode specified in` mode`.\n\nThe name of the `.env` file depends on the startup mode.\nIf you do not specify the launch mode, the `.env` file will be loaded.\nIf you need to load a `.env` file for a specific mode, you should specify the `mode` property.\n\nThus, specifying `mode: test` will read the `.env.test` file. `mode: development` will read `.env.development` and so on.\n\nAfter reading and parsing the variables from the `.env` file, it writes them to `GITHUB_ENV`.\n\nIf the action should continue when the .env file is not present, the optional `load-mode` flag can be set to `skip`. This can be particularly, for example, useful in secondary branches, where some aspects of the action may not be relevant.\n\nAction also supports variable expansion, e.g.\n```bash\nPASSWORD=\"s1mpl3\"\nDB_PASS=$PASSWORD\n```\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxom9ikk%2Fdotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxom9ikk%2Fdotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxom9ikk%2Fdotenv/lists"}