gitgreen 1.4.0 → 1.5.0
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.
- package/dist/init.js +3 -4
- 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
|
-
|
|
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) => {
|