1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Updating release playbook to conditionally use submodules

This commit is contained in:
James Cammarata 2016-12-06 13:51:27 -05:00 committed by Matt Clay
parent 5cdc2b5738
commit b38b408f19

View file

@ -31,6 +31,10 @@
# prompt: "Enter the release code name (only used if doing a final release)" # prompt: "Enter the release code name (only used if doing a final release)"
# default: "" # default: ""
# private: no # private: no
- name: has_submodules
prompt: "Does this branch have git submodules?"
default: "yes"
private: no
- name: is_final - name: is_final
prompt: "Is this a final release (not a beta/rc)?" prompt: "Is this a final release (not a beta/rc)?"
default: "no" default: "no"
@ -113,6 +117,7 @@
with_items: with_items:
- core - core
- extras - extras
when: has_submodules|bool
- name: Update the VERSION file for the modules - name: Update the VERSION file for the modules
copy: copy:
@ -121,6 +126,7 @@
with_items: with_items:
- core - core
- extras - extras
when: has_submodules|bool
- name: Add and commit the updated files for the core modules - name: Add and commit the updated files for the core modules
shell: shell:
@ -129,6 +135,7 @@
with_items: with_items:
- core - core
- extras - extras
when: has_submodules|bool
- name: Add and commit the updated files for the main repo - name: Add and commit the updated files for the main repo
shell: shell:
@ -160,6 +167,7 @@
with_items: with_items:
- core - core
- extras - extras
when: has_submodules|bool
- name: create the dist tar.gz - name: create the dist tar.gz
command: command:
@ -189,6 +197,7 @@
with_items: with_items:
- core - core
- extras - extras
when: has_submodules|bool
- name: Push the updates and/or tag - name: Push the updates and/or tag
shell: shell: