GithubHelp home page GithubHelp logo

dgadavin / create-env-json Goto Github PK

View Code? Open in Web Editor NEW

This project forked from schdck/create-env-json

0.0 0.0 0.0 893 KB

GitHub action that writes environment variables (or anything you want) to a JSON

License: MIT License

JavaScript 100.00%

create-env-json's Introduction

create-env-json

This action writes environment variables (or anything you want) to a JSON file that can be accessed by future steps.

Inputs

  • [required] file-name: The name of the file to be written.
  • Other variables: you must specify any other variable you want written to the JSON as input variables. Pass the variable with the name you want to appear in the JSON.

Output

  • full-path: The full path to the written file

Usage

uses: schdck/create-env-json@v1
id: create-env
with:
  file-name: 'env.json'
  super-secret: ${{ secrets.SuperSecret }}
  CONNECTION_STRING: ${{ secrets.connection_string }}

This will generate the following JSON:

{"super-secret":"[your-super-secret]","CONNECTION_STRING":"[your-connection-string]"}

You can later pass it's path as an input for another program (e.g. claudia.js, which receives a JSON in --set-env-from-json)

Acessing the full-path

You can later access the full path of the file using ${{ steps.create-env.outputs.full-path }}

create-env-json's People

Contributors

schdck avatar dgadavin avatar dependabot[bot] avatar

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.