Skip to content

Commit

Permalink
default main when repo branch is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
guidograzioli committed Aug 26, 2024
1 parent 24255f4 commit 0c88810
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions playbooks/amq_broker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
downstream_namespace: redhat
upstream_namespace: middleware_automation
project_git_url: https://github.com/ansible-middleware/amq.git
project_git_version: "{{ lookup('env', 'GIT_REPOSITORY_BRANCH') | default('main', true) }}"
upstream_downstream_collections_map:
- { upstream_name: 'middleware_automation.common', downstream_name: 'redhat.runtimes_common' }
post_processors_replacements:
Expand Down
2 changes: 1 addition & 1 deletion playbooks/jbcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
downstream_namespace: 'redhat'
upstream_namespace: 'middleware_automation'
project_git_url: "https://github.com/ansible-middleware/{{ upstream_name }}.git"
project_git_version: "{{ lookup('env', 'GIT_REPOSITORY_BRANCH') | default('main') }}"
project_git_version: "{{ lookup('env', 'GIT_REPOSITORY_BRANCH') | default('main', true) }}"
upstream_downstream_collections_map:
- { upstream_name: 'middleware_automation.common', downstream_name: 'redhat.runtimes_common' }
galaxy:
Expand Down
1 change: 1 addition & 0 deletions playbooks/jws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
downstream_namespace: 'redhat'
upstream_namespace: 'middleware_automation'
project_git_url: https://github.com/ansible-middleware/jws.git
project_git_version: "{{ lookup('env', 'GIT_REPOSITORY_BRANCH') | default('main', true) }}"
upstream_downstream_collections_map:
- { upstream_name: 'middleware_automation.common', downstream_name: 'redhat.runtimes_common' }
- { upstream_name: 'middleware_automation.jws', downstream_name: 'redhat.jws' }
Expand Down
2 changes: 1 addition & 1 deletion playbooks/rhbk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
excluded_roles_from_downstream:
- roles/keycloak
project_git_url: https://github.com/ansible-middleware/keycloak.git
project_git_version: "{{ lookup('env', 'GIT_REPOSITORY_BRANCH') | default('main') }}"
project_git_version: "{{ lookup('env', 'GIT_REPOSITORY_BRANCH') | default('main', true) }}"
upstream_downstream_collections_map:
- { upstream_name: 'middleware_automation.common', downstream_name: 'redhat.runtimes_common' }
post_processors_replacements: []
Expand Down
1 change: 1 addition & 0 deletions playbooks/runtimes_common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
downstream_namespace: 'redhat'
upstream_namespace: 'middleware_automation'
project_git_url: "https://github.com/ansible-middleware/{{ upstream_name }}.git"
project_git_version: "{{ lookup('env', 'GIT_REPOSITORY_BRANCH') | default('main', true) }}"
upstream_downstream_collections_map:
- { upstream_name: 'middleware_automation.common', downstream_name: 'redhat.runtimes_common' }
- { upstream_name: 'fedora.linux_system_roles', downstream_name: 'redhat.rhel_system_roles' }
Expand Down

0 comments on commit 0c88810

Please sign in to comment.