Skip to content

Commit 85612c5

Browse files
committed
feat: remove header.yml.j2
1 parent 45c95a0 commit 85612c5

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
lines changed

roles/github/templates/generic.yml.j2

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,26 @@
1010
<%- elif github_environment_selector == 'single' -%>
1111
<%- set _ = github_default_kayobe_arguments.update({"KAYOBE_ENVIRONMENT": github_kayobe_environments[0] }) -%>
1212
<%- endif -%>
13-
<% include "header.yml.j2" +%>
13+
name: %% format_file_name(workflow.file_name, is_title=true) %%
14+
15+
on:
16+
<%- if workflow.trigger is defined +%>
17+
<%- for trigger_name in workflow.trigger.keys() +%>
18+
<%- if trigger_name == 'schedule' +%>
19+
schedule:
20+
- cron: '%% workflow.trigger['schedule']['cron'] %%'
21+
<%- elif trigger_name == 'workflow_dispatch' +%>
22+
workflow_dispatch:
23+
<%- if workflow.trigger['workflow_dispatch'] is not none +%>
24+
inputs:
25+
%% workflow.trigger['workflow_dispatch'] | flatten | join('') | indent(6) | trim %%
26+
<%- if github_environment_selector == 'input' +%>
27+
%% github_kayobe_environment_input | flatten | join('') | indent(6) | trim %%
28+
<%- endif +%>
29+
<%- endif +%>
30+
<%- endif +%>
31+
<%- endfor +%>
32+
<%- endif +%>
1433

1534
jobs:
1635
prepare-runner:

roles/github/templates/header.yml.j2

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)