https://github.com/varunkumar/create-env-action
Creates .env by taking environment keys from GitHub secrets
https://github.com/varunkumar/create-env-action
Last synced: 8 months ago
JSON representation
Creates .env by taking environment keys from GitHub secrets
- Host: GitHub
- URL: https://github.com/varunkumar/create-env-action
- Owner: varunkumar
- License: other
- Created: 2022-12-06T16:41:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-07T14:15:47.000Z (over 3 years ago)
- Last Synced: 2025-09-13T00:37:08.080Z (9 months ago)
- Language: JavaScript
- Size: 154 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Create env file action
[](../../actions/workflows/test.yml)
This action creates .env by taking environment keys from GitHub secrets
## Inputs
- `env` [**Required**] The environment keys.
- `file` The file name
- `path` The file root path
## Outputs
- `parsed` Object version of env file
- `location` Location of env file
- `sanitized` Sanitized version of env file
- `success` True or False
## Example usage
```yaml
uses: varunkumar/create-env-action@v1
with:
env: |
FOO=bar
BAR=baz
TEST="#abc" # quotes are mandatory for values with special characters
USER_NAME="${{ secrets.USER_NAME }}" # define the secret in GitHub
```