Skip to content
code

GitHub Action

Set environment variables

v0.2 Latest version

Set environment variables

code

Set environment variables

Configures environment variables for a GitHub workflow

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Set environment variables

uses: tw3lveparsecs/github-actions-set-variables@v0.2

Learn more about this action in tw3lveparsecs/github-actions-set-variables

Choose a version

Set Variables

GitHub action that sets environment variables for your GitHub workflow.

Usage

The action has a required input called envFilePath. This sets the path to the file or directory containing the environment variables to set for the GitHub workflow.

Single environment variable file

- name: Set Environment Variables
  uses: tw3lveparsecs/github-actions-set-variables@latest
  with:
    envFilePath: ./drop/.github/variables/vars.env

Directory containing multiple environment variable files

- name: Set Environment Variables
  uses: tw3lveparsecs/github-actions-set-variables@latest
  with:
    envFilePath: ./drop/.github/variables/*

License

The scripts and documentation in this project are released under the MIT License

Contributions

Contributions are welcome! See the Contributor's Guide.