You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Dotenv Action
v0.2.8
It reads the .env
file from the root of this repo and provides environment variables to build steps.
Override the path to the .env
file. Default is .env
in the repository root.
Log variables after reading from the .env
file.
Mask values after reading from the .env
file.
Whatever is present in the .env
file will be converted into an output variable.
E.g. you have the following .env
:
VERSION=1.0
AUTHOR=Mickey Mouse
Then you will have outputs:
{
version: "1.0"
author: "Mickey Mouse"
}
id: dotenv
uses: ./.github/actions/dotenv-action
Then later you can refer to the alpine version like this
${{ steps.dotenv.outputs.version }}