8000 GitHub - falti/dotenv-action at v0.2.4
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

falti/dotenv-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

javscript-action status

dotenv action

It reads the .env file from the root of this repo and provides environment variables to build steps.

Inputs

path

Override the path to the .env file. Default is .env in the repository root.

Outputs

generic

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

Example usage

id: dotenv
uses: ./.github/actions/dotenv-action

Then later you can refer to the alpine version like this ${{ steps.dotenv.outputs.version }}

About

Provide common parameters via .env file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 10

0