Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes 418 #442

Merged
merged 3 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelogs/fragments/442.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- "The ``build-release`` role fails to execute when ``./build/antsibull-build-data`` doesn't exist and when the antsibull_data_reset variable is set to false (https://github.com/ansible-community/antsibull/pull/442)."
Ompragash marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 6 additions & 0 deletions roles/build-release/tasks/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@
force: true
# By setting antsibull_data_reset to false, we can run with an edited or otherwise prepared version of ansible-build-data
when: antsibull_data_reset | bool

- name: Ensure {{ antsibull_data_git_dir }} exists when antsibull_data_reset variable is set to false
ansible.builtin.stat:
path: "{{ antsibull_data_git_dir }}"
register: antsibull_data_directory
failed_when: antsibull_data_reset == 0 and antsibull_data_directory.stat.exists == 0
Ompragash marked this conversation as resolved.
Show resolved Hide resolved