Skip to content

Github action to import environment variables from github pull request comment

Notifications You must be signed in to change notification settings

dhanvi/import-env-from-pr-comment

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

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

import env from pr comment

A Github action to import environment variables from github pull request comment

Usage

  • Requires the GITHUB_TOKEN secret.
  • Supports pull_request event types.

Sample workflow

on:
  pull_request:

jobs:
  example:
    runs-on: ubuntu-latest
    steps:
    - name: example
      uses: dhanvi/import-env-from-pr-comment@master

Data in PR comment

  • Data in below format is expected in the pr description, first comment only, if you need to update environment variable you can always update the description and re-trigger the action.
```json
{
    "ENV1": "ENV_VALUE_1",
    "ENV2": "ENV_VALUE_2",
}
  • It is suggested to create a PR template in the repo by adding the above data in the file .github/pull_request_template.md

About

Github action to import environment variables from github pull request comment

Resources

Stars

Watchers

Forks

Packages

No packages published