Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.

MandalAutomations/Update-Environment-Variable

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update-Environment-Variable

This is a GitHub Action to update environment variable in a workflow run. If the variable does not exist in the environment, it will be created.

Usage

Usage with single environment

- name: Update Environment Variable
  uses: MandalAutomations/Update-Environment-Variable@v1
  with:
    Name: "Name of the variable"
    Value: "Value of the variable"
    EnvironmentName: "Environment name"
    RepoId: ${{ github.repository_id }}
    Token: ${{ secrets.PAT_TOKEN }}

Usage with multiple environments

update_environment_variable:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        enviornments: ["main", "test", "uat"]

    steps:
      
      - name: Update Environment Variable
        uses: MandalAutomations/Update-Environment-Variable@v6
        with:
            Name: "Name of the variable"
            Value: "Value of the variable"
            EnvironmentName: ${{ matrix.enviornments }}
            RepoId: ${{ github.repository_id }}
            Token: ${{ secrets.PAT_TOKEN }}

Inputs

Name:

Required String Name for the variable to update

Value:

Required String Value for the variable to update

EnvironmentName:

Required String Environment Name

RepoId:

Required String Repository ID can be found using ${{ github.repository_id }}

Token:

Required String Personal Access Token (PAT)

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors