Skip to content

Commit

Permalink
Fix antsibull_build_reset bug. (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein authored May 14, 2024
1 parent 5e34b11 commit c4527dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/602-antsibull_build_reset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- "Fix bug when handling ``antsibull_build_reset`` wsa passed in as a string from CLI (https://github.com/ansible-community/antsibull/pull/602)."
4 changes: 2 additions & 2 deletions roles/build-release/tasks/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
_allow_prereleases: "--allow-prereleases"
when: antsibull_ansible_version is regex("^\d+.\d+.\d+(a\d+)$")

- name: Update version ranges in the build file for alpha and beta releases
- name: Update version ranges in the build file for alpha and beta-1 releases
ansible.builtin.command: >-
{{ antsibull_build_command }} new-ansible {{ antsibull_ansible_version }}
--data-dir {{ antsibull_data_dir }}
{{ _allow_prereleases | default('') }}
when: >-
(antsibull_ansible_version is regex("^\d+.\d+.\d+(a\d+|b1)$") and antsibull_build_reset)
(antsibull_ansible_version is regex("^\d+.\d+.\d+(a\d+|b1)$") and (antsibull_build_reset | bool))
or not _antsibull_build_file_stat.stat.exists
- name: Set up feature freeze for b2 and later betas, and release candidates
Expand Down

0 comments on commit c4527dd

Please sign in to comment.