Skip to content

rajbos/greenframe-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

GreenFrame CLI action

This action install the GreenFrame CLI and perform an analysis by using your configuration file.

GreenFrame Documentation

Inputs

CONFIG_PATH

The path to your config file. Default ./.greenframe.yml.

Environnement variable

GREENFRAME_SECRET_TOKEN

You have to provide your GREENFRAME_SECRET_TOKEN. Do not paste it directly in your repository but use Github Encrypted Secrets instead.

Example usage

Create a file: .github/workflows/greenframe.yml

on: [push]

jobs:
  greenframe_action_workflow:
    runs-on: ubuntu-latest
    name: Run a GreenFrame CLI Action
    steps:
      # To use this repository's private action,
      # you must check out the repository
      - name: Checkout
        uses: actions/checkout@v2
        with:
          fetch-depth: 0 # Fetch all the git history to enable git comparison
      - name: GreenFrame Analysis
        uses: marmelab/greenframe-action@1.0.0
        env:
          GREENFRAME_SECRET_TOKEN: ${{secrets.GREENFRAME_SECRET_TOKEN}}

About

GreenFrame Github Action to perform carbon footprint analysis

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%