{"id":22350673,"url":"https://github.com/iamsauravsharma/create-dotenv","last_synced_at":"2025-07-30T06:32:06.861Z","repository":{"id":44911073,"uuid":"361348028","full_name":"iamsauravsharma/create-dotenv","owner":"iamsauravsharma","description":"Create dotenv file for GitHub actions","archived":false,"fork":false,"pushed_at":"2023-11-09T03:40:14.000Z","size":385,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T15:13:40.094Z","etag":null,"topics":["dotenv","env","environment-variables","github-actions","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamsauravsharma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-04-25T06:22:46.000Z","updated_at":"2023-12-28T12:50:30.000Z","dependencies_parsed_at":"2023-02-12T11:47:45.804Z","dependency_job_id":"50899b13-b047-4f5a-a1f7-81e0d18c0916","html_url":"https://github.com/iamsauravsharma/create-dotenv","commit_stats":{"total_commits":43,"total_committers":4,"mean_commits":10.75,"dds":"0.11627906976744184","last_synced_commit":"9043ca4384fca3ce20ec76ff855bde9e5cd75014"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsauravsharma%2Fcreate-dotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsauravsharma%2Fcreate-dotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsauravsharma%2Fcreate-dotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamsauravsharma%2Fcreate-dotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamsauravsharma","download_url":"https://codeload.github.com/iamsauravsharma/create-dotenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228098260,"owners_count":17869033,"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":["dotenv","env","environment-variables","github-actions","hacktoberfest"],"created_at":"2024-12-04T11:12:45.553Z","updated_at":"2025-07-30T06:32:06.849Z","avatar_url":"https://github.com/iamsauravsharma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create dotenv action\n\nThis action creates dotenv file\n\n## Inputs\n\n### `input-prefix`\n\nThe prefix for environmental variable which should be stored in dot env file. Default is empty string i.e `''` which will store all environmental variable as it is without modification expects environment variable which starts with prefix `GITHUB_` or `RUNNER_`. If you needs to also add `GITHUB_` or `RUNNER_` environment variable create another steps which has prefix set to `GITHUB_` or `RUNNER_`\n\n### `file-path`\n\nLocation of dot env file. Default is `'.env'`\n\n### `output-prefix`\n\nThe prefix which should be added to .env file. Default is `''` which adds environment variable as it is after removing input-prefix from it\n\n### `write-mode`\n\nThe writing mode which can be either `append` or `overwrite`. Default is `overwrite`\n\n## Example usage\n\n```yaml\nname: Create env file\n\non: [push]\n\nenv: # env available for all jobs all steps\n  PRODUCTION: true\n  ENV_KEY_PROJECT_NAME: dot-env\n\njobs:\n  create-env-file:\n    name: Create env file\n    runs-on: ubuntu-latest\n    env: # env available for all steps of jobs\n      ENV_KEY_DEBUG: true\n      ENV_KEY_USERNAME: root\n\n    steps:\n      - uses: actions/checkout@v4\n      - uses: iamsauravsharma/create-dotenv@v3.2.0\n        with:\n          input-prefix: 'ENV_KEY_' # Optional (default: '')\n          file-path: 'tests/development.env' # Optional (default : '.env')\n          output-prefix: 'OUTPUT_' # Optional (default: '')\n          write-mode: 'append' # Optional (default: 'overwrite')\n        env: # env available for only this steps\n          IS_SERVER: true\n          ENV_KEY_USERNAME: admin\n          ENV_KEY_API_KEY: USER_API_KEY\n          ENV_KEY_SECRET_KEY: secret123\n          ENV_KEY_MULTILINE: |\n            multi line value\n            is here\n```\n\nwill create a development.env file in tests/ directory which would contain\n\n```bash\nOUTPUT_PROJECT_NAME=dot-env\nOUTPUT_USERNAME=admin\nOUTPUT_DEBUG=true\nOUTPUT_API_KEY=USER_API_KEY\nOUTPUT_SECRET_KEY=secret123\nOUTPUT_MULTILINE=\"multi line value\nis here\"\n```\n\n### Important Notes\nWhen using multi-line values (like ENV_KEY_MULTILINE in the example), the action will automatically wrap the value in quotes and retain the line breaks. This makes it compatible with the .env format. Single-line values are added directly without quotes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamsauravsharma%2Fcreate-dotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamsauravsharma%2Fcreate-dotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamsauravsharma%2Fcreate-dotenv/lists"}