Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

load-env GitHub Action

The load-env action provides .env key-value pairs as outputs for use in workflows.

Usage

Place a .env file in your repository (e.g. /.env):

TIMEOUT=30

Then, use load-env in your workflow to access these values:

jobs:
  load-env:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Load Configuration
        id: configuration
        uses: codebandits/github-actions/load-env@v1
        with:
          path: .env

      - run: echo "TIMEOUT is ${{ steps.configuration.outputs.TIMEOUT }}"