Skip to content

Commit

Permalink
Merge pull request #550 from linear-b/fix-automation-names
Browse files Browse the repository at this point in the history
fix names to be unique and match the docs
  • Loading branch information
vim-zz authored Jul 7, 2024
2 parents a3ac4ee + 5692a4a commit b8c3f67
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
automations:
{% for item in pipelines %}
# Change pr.target to branch.name if you want to trigger on the source branch rather then the target branch.
dispatch_github_action_{{ item.name }}:
dispatch_github_action_branch_{{ item.name }}:
if:
- {{ pr.target | includes(term=item.branch_prefix) }}
run:
Expand All @@ -26,10 +26,10 @@ automations:

pipelines:
- name: mobile_ci
label: Mobile CI
label: Mobile CI
branch_prefix: 'mobile-'
workflow: mobile.yml
- name: backend_ci
label: Backend CI
label: Backend CI
branch_prefix: 'backend-'
workflow: 'backend.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

automations:
{% for item in pipelines %}
dispatch_github_action_{{ item.name }}:
dispatch_github_action_label_{{ item.name }}:
if:
- {{ pr.labels | match(term=item.label) | some }}
run:
Expand All @@ -21,8 +21,8 @@ automations:

pipelines:
- name: mobile-ci
label: Mobile CI
label: Mobile CI
workflow: mobile.yml
- name: backend-ci
label: Backend CI
label: Backend CI
workflow: 'backend.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

automations:
{% for item in pipelines %}
dispatch_github_action_{{ item.name }}:
dispatch_github_action_resource_{{ item.name }}:
if:
- {{ files | match(list=item.resources) | some }}
run:
Expand All @@ -25,13 +25,13 @@ automations:

pipelines:
- name: mobile-ci
label: Mobile CI
label: Mobile CI
resources:
- 'src/android/'
- 'src/ios/'
workflow: mobile.yml
- name: backend-ci
label: Backend CI
label: Backend CI
resources:
- 'src/api/'
- 'src/services'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ manifest:
{% endfor %}

automations:
review_new_terraform_module:
if:
review_terraform_module_name:
if:
- {{is.mainfile and is.mainfilenotinroot}}
- {{module_name_checks.prefix or module_name_checks.keyword}}
run:
Expand All @@ -39,4 +39,4 @@ is:
mainfile: {{newfilesinpr | match(term = "main.tf") | some}}
mainfilenotinroot: {{source.diff.files | map(attr='original_file') | match(term = "main.tf") | nope }}
newfilesinpr:
{{ branch.diff.files_metadata | map(attr='new_file')}}
{{ branch.diff.files_metadata | map(attr='new_file')}}

0 comments on commit b8c3f67

Please sign in to comment.