Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 709 Bytes

File metadata and controls

36 lines (24 loc) · 709 Bytes

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 }}