Skip to content

Commit a2273bd

Browse files
committed
feat: feat
1 parent 249720d commit a2273bd

File tree

6 files changed

+17
-11
lines changed

6 files changed

+17
-11
lines changed

packages/plugin-cicd-github/templates/workflows/fragments/build/build-project.yml.ejs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
run: make build-<%- project %> env=${{env.env}}
44
env:
55
FORCE_COLOR: 3
6-
CI: true
6+
CI: true<% if (('undefined' !== typeof v.github_token_env) && !!v.github_token_env) { %>
7+
<%= v.github_token_env -%>: ${{secrets.<%= v.github_token_env -%>}}<% } -%>

packages/plugin-cicd-github/templates/workflows/fragments/job/parallel-build--env-install-test-build-deploy.yml.ejs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
<% const origV = v -%>
12
<% (Object.values(projects || {})).forEach(p => {
2-
v = {...v, ...(p['workflowsVars'] || {})}
3+
v = {...origV, ...(p['workflowsVars'] || {})}
34
-%>
45
<%- p.project %>:
56
needs: changes
@@ -13,4 +14,4 @@
1314
<%- include('../build/test-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath}) %>
1415
<%- include('../build/build-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath}) %>
1516
<%- include('../build/deploy-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath}) %>
16-
<% }) %>
17+
<% }) %>

packages/plugin-cicd-github/templates/workflows/fragments/job/parallel-build--env-install-test-build.yml.ejs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
<% const origV = v -%>
12
<% (Object.values(projects || {})).forEach(p => {
2-
v = {...v, ...(p['workflowsVars'] || {})}
3+
v = {...origV, ...(p['workflowsVars'] || {})}
34
-%>
45
<%- p.project %>:
56
needs: changes
@@ -12,4 +13,4 @@
1213
<%- include('../build/install-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath, needRoot: p.needRoot}) %>
1314
<%- include('../build/test-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath}) %>
1415
<%- include('../build/build-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath}) %>
15-
<% }) %>
16+
<% }) %>

packages/plugin-cicd-github/templates/workflows/fragments/job/parallel-build--env-install-test.yml.ejs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
<% const origV = v -%>
12
<% (Object.values(projects || {})).forEach(p => {
2-
v = {...v, ...(p['workflowsVars'] || {})}
3+
v = {...origV, ...(p['workflowsVars'] || {})}
34
-%>
45
<%- p.project %>:
56
needs: changes
@@ -11,4 +12,4 @@
1112
<%- include('../prepare/technologies.yml.ejs', {dv, v}) %>
1213
<%- include('../build/install-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath, needRoot: p.needRoot}) %>
1314
<%- include('../build/test-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath}) %>
14-
<% }) %>
15+
<% }) %>

packages/plugin-cicd-github/templates/workflows/fragments/job/parallel-build--install-test-build.yml.ejs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
<% const origV = v -%>
12
<% (Object.values(projects || {})).forEach(p => {
2-
v = {...v, ...(p['workflowsVars'] || {})}
3+
v = {...origV, ...(p['workflowsVars'] || {})}
34
-%>
45
<%- p.project %>:
56
needs: changes
@@ -11,4 +12,4 @@
1112
<%- include('../build/install-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath, needRoot: p.needRoot}) %>
1213
<%- include('../build/test-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath}) %>
1314
<%- include('../build/build-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath}) %>
14-
<% }) %>
15+
<% }) %>

packages/plugin-cicd-github/templates/workflows/fragments/job/parallel-build--install-test.yml.ejs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
<% const origV = v -%>
12
<% (Object.values(projects || {})).forEach(p => {
2-
v = {...v, ...(p['workflowsVars'] || {})}
3+
v = {...origV, ...(p['workflowsVars'] || {})}
34
-%>
45
<%- p.project %>:
56
needs: changes
@@ -10,4 +11,4 @@
1011
<%- include('../prepare/technologies.yml.ejs', {dv, v}) %>
1112
<%- include('../build/install-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath, needRoot: p.needRoot}) %>
1213
<%- include('../build/test-project.yml.ejs', {dv, v, project: p.project, projectPath: p.projectPath}) %>
13-
<% }) %>
14+
<% }) %>

0 commit comments

Comments
 (0)