gitgreen 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/init.js +3 -4
  2. package/package.json +1 -1
package/dist/init.js CHANGED
@@ -299,15 +299,14 @@ const generateCiJob = (opts) => {
299
299
  if (failOnBudget) {
300
300
  inputs += `\n fail_on_budget: true`;
301
301
  }
302
- const tagsSection = runnerTag ? `\n tags:\n - ${runnerTag}` : '';
302
+ if (runnerTag) {
303
+ inputs += `\n tags: ["${runnerTag}"]`;
304
+ }
303
305
  return `# GitGreen carbon analysis (generated by gitgreen init)
304
306
  include:
305
307
  - component: gitlab.com/youneslaaroussi/gitgreen/gitgreen-cli-component@main
306
308
  inputs:
307
309
  ${inputs}
308
-
309
- carbon_analysis:
310
- extends: .gitgreen-carbon-analysis${tagsSection}
311
310
  `;
312
311
  };
313
312
  const applyCiJobSnippet = async (ciJob) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitgreen",
3
- "version": "1.4.0",
3
+ "version": "1.5.1",
4
4
  "description": "GitGreen CLI for carbon reporting in GitLab pipelines (GCP/AWS)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",