Skip to content

phogolabs/ci-dotenv

Repository files navigation

ci-dotenv

Export environment variables from a file.

Inputs

  • path - Path to the .env file (including file name)
  • mask - Mark the value as secret to prevent any appereance in the console
  • export - Export the variable to GitHub environment variables

Usage

You can now consume the action by referencing the v1 branch

If you have a file .env in your project directory.

export APP_NAME="example-api"
export APP_VERSION="1.0.1"

You can configure the action:

id: dotenv
uses: phogolabs/ci-dotenv@v1
with: { path: ".env" }

Then you will have the following output variables:

${{ dotenv.outputs.variables.app_name }}
${{ dotenv.outputs.variables.app_version }}

About

GitHub Action that enables .env in your directory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published