summaryrefslogtreecommitdiff
path: root/packaging/release/release.yml
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2016-12-06 13:51:27 -0500
committerMatt Clay <matt@mystile.com>2016-12-08 11:35:19 -0500
commitb38b408f199abbcfe6a660e5d8defc6bc51efd3b (patch)
tree8f538847c0b5c84b2319f944daec72f9382c383e /packaging/release/release.yml
parent5cdc2b573856c45694fba94ec845e770869c1f9e (diff)
downloadansible-b38b408f199abbcfe6a660e5d8defc6bc51efd3b.tar.gz
Updating release playbook to conditionally use submodules
Diffstat (limited to 'packaging/release/release.yml')
-rw-r--r--packaging/release/release.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/packaging/release/release.yml b/packaging/release/release.yml
index 66953e07db..7fcfbd83a0 100644
--- a/packaging/release/release.yml
+++ b/packaging/release/release.yml
@@ -31,6 +31,10 @@
# prompt: "Enter the release code name (only used if doing a final release)"
# default: ""
# private: no
+ - name: has_submodules
+ prompt: "Does this branch have git submodules?"
+ default: "yes"
+ private: no
- name: is_final
prompt: "Is this a final release (not a beta/rc)?"
default: "no"
@@ -113,6 +117,7 @@
with_items:
- core
- extras
+ when: has_submodules|bool
- name: Update the VERSION file for the modules
copy:
@@ -121,6 +126,7 @@
with_items:
- core
- extras
+ when: has_submodules|bool
- name: Add and commit the updated files for the core modules
shell:
@@ -129,6 +135,7 @@
with_items:
- core
- extras
+ when: has_submodules|bool
- name: Add and commit the updated files for the main repo
shell:
@@ -160,6 +167,7 @@
with_items:
- core
- extras
+ when: has_submodules|bool
- name: create the dist tar.gz
command:
@@ -189,6 +197,7 @@
with_items:
- core
- extras
+ when: has_submodules|bool
- name: Push the updates and/or tag
shell: