perschulte/Green CI Measure
Measure energy consumption and CO2 emissions of CI/CD commands
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| command | Command to measure energy consumption and CO2 emissions | yes | — |
| working-directory | Working directory to run the command in | no | . |
| python-version | Python version to use for Green CI | no | 3.11 |
| badge | Generate badge for energy/CO2 metrics (true/false) | no | false |
| token | GitHub token for badge generation and API access | no | — |
| electricity-maps-api-key | API key for Electricity Maps to get accurate carbon intensity | no | — |
Outputs
| name | description |
|---|---|
| energy_kwh | Energy consumption in kilowatt-hours |
| co2_kg | CO2 emissions in kilograms |
| duration_s | Command execution duration in seconds |
| json_output | Full JSON output from measurement |