GithubHelp home page GithubHelp logo

agaengel / envvar-to-dotenv-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fmunirdev/envvar-to-dotenv-action

0.0 1.0 0.0 3 KB

A GitHub composite action to append environment variables to a dotenv file.

License: MIT License

envvar-to-dotenv-action's Introduction

env vars to dotenv action

A GitHub composite action to append environment variables to a dotenv file.

Inspired by: TickX/var-to-dotenv and CallePuzzle/envvar-to-dotenv-action.

Usage

Single variable

jobs:
  single:
    name: Single
    runs-on: ubuntu-latest
    steps:
      - name: Creating .env file
        uses: fmunirdev/[email protected]
        env:
          ENV_VAR1: 'value'
        with:
          variableName: ENV_VAR1

Multiple variables

jobs:
  multiple:
    name: Multiple
    runs-on: ubuntu-latest
    steps:
      - name: Creating .env file
        uses: fmunirdev/[email protected]
        env:
          ENV_VAR1: 'value 1'
          ENV_VAR2: 'value 2'
          ENV_VAR3: 'value 3'
        with:
          variableName: ENV_VAR1,ENV_VAR2,ENV_VAR3

With GitHub Secrets

jobs:
  multiple:
    name: Multiple
    runs-on: ubuntu-latest
    steps:
      - name: Creating .env file
        uses: fmunirdev/[email protected]
        env:
          SECRET_VAR1: ${{ secrets.SECRET_VAR1 }}
          ENV_VAR: 'value'
        with:
          variableName: SECRET_VAR1,ENV_VAR

With target

The created env file can be configured via target. If the target contains a folder path folders will be created automatically

jobs:
  multiple:
    name: Target
    runs-on: ubuntu-latest
    steps:
      - name: Creating .env file
        uses: fmunirdev/[email protected]
        env:
          ENV_VAR: 'value'
        with:
          variableName: ENV_VAR
          target: .prod.env   

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.