Skip to content

flaviotoribio/envvar-to-dotenv-action

 
 

Repository files navigation

Environment variable to dotenv GitHub Action

Action to append environment variables to a dotenv file.

This repo is inspired/folked by https://github.com/TickX/var-to-dotenv.

Usage

A single variable:

env:
  ENV_VAR1: 'value'
  ENV_VAR2: 'value2'
jobs:
  single:
    name: Single
    runs-on: ubuntu-latest
    steps:
      - name: Test name
        uses: CallePuzzle/[email protected]
        with:
          variableName: ENV_VAR1

A many variables:

env:
  ENV_VAR1: 'value'
  ENV_VAR2: 'value2'
jobs:
  single:
    name: Single
    runs-on: ubuntu-latest
    steps:
      - name: Test name
        uses: CallePuzzle/[email protected]
        with:
          variableNames: ENV_VAR1,ENV_VAR2

All variables matching regex:

env:
  ENV_VAR1: 'value'
  ENV_VAR2: 'value2'
jobs:
  single:
    name: Single
    runs-on: ubuntu-latest
    steps:
      - name: Test name
        uses: CallePuzzle/[email protected]
        with:
          variableNamesByFilter: ^ENV_(VAR.*)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.7%
  • JavaScript 1.3%