Skip to content

GreenFrame Github Action to perform carbon footprint analysis

License

Notifications You must be signed in to change notification settings

marmelab/greenframe-action

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

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}}