Skip to content

Commit

Permalink
comments from @AngelOnFira
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaiers committed Nov 9, 2021
1 parent 8e7662b commit 2a5eab1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:latest
FROM python:3.9

WORKDIR /opt/action

Expand Down
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ release](https://img.shields.io/github/release/SpicyPizza/create-envfile.svg?sty
marketplace](https://img.shields.io/badge/marketplace-create--env--file-blue?logo=github&style=flat-square)](https://github.com/marketplace/actions/create-env-file)
[![Licence](https://img.shields.io/github/license/SpicyPizza/create-envfile)](https://github.com/SpicyPizza/create-envfile/blob/master/LICENSE)

## Versions

Please use this version of your action config file:

* `SpicyPizza/create-envfile@master`

* `SpicyPizza/[email protected]`

## About

A Github Action to create a .env file with Github Secrets. This is useful when
Expand All @@ -40,7 +32,7 @@ jobs:

steps:
- name: Make envfile
uses: SpicyPizza/create-envfile@master
uses: SpicyPizza/create-envfile@v1.2
with:
envkey_DEBUG: false
envkey_SOME_API_KEY: "123456abcdef"
Expand All @@ -59,7 +51,7 @@ the envfile:
|---------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------|
| `envkey_DEBUG`, `envkey_SOME_API_KEY` | These values can be whatever, and they will be added to the envfile as `DEBUG` and `SOME_API_KEY` . |
| `envkey_SECRET_KEY` | This one will use a secret stored in the repository's Github Secrets, and add it to the file as `SECRET_KEY` |
| `directory` (**Optional**) | This key will set the directory in which you want to create `env` file. **Important: cannot start with `/`** (Action will fail if the specified directory doesn't exist.) |
| `directory` (**Optional**) | This key will set the directory in which you want to create `env` file. **Important: cannot start with `/`. Action will fail if the specified directory doesn't exist.** |
| `file_name` (**Optional**) | Set the name of the output envfile. Defaults to `.env` |

Assuming that the Github Secret that was used is `password123`, the .env file
Expand Down
2 changes: 1 addition & 1 deletion src/create-envfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/local/bin/python
import os

env_keys = list(dict(os.environ).keys())
Expand Down

0 comments on commit 2a5eab1

Please sign in to comment.