Fail fetch-sphinx-tarball if no html exists
If no html is generated but a PDF, the role will succeed. This is wrong, we always need HTML for the publish step where the logic is: Publish HTML and optionally PDF. I run into this when updating tox.ini and breaking html output, the jobs passed but promote job failed. Change-Id: I44d15da4c8e1ec0d1f7284daed69dbf5caa40bf0
This commit is contained in:
parent
8f06e1a536
commit
4f25b964f9
@ -17,3 +17,10 @@
|
||||
include_tasks: pdf.yaml
|
||||
|
||||
# Other sphinx output processing can be added here.
|
||||
|
||||
# Finally fail, if no html exists
|
||||
|
||||
- name: Fail if no HTML exists
|
||||
fail:
|
||||
msg: 'No html output in "{{ sphinx_build_dir }}".'
|
||||
when: "'html' not in sphinx_dir"
|
||||
|
Loading…
x
Reference in New Issue
Block a user