version-from-git: fix logic with tags
When there is no commit since the tag, we don't want the scm_sha part of project_ver, but just the scm_tag. This patch fix the logic. Change-Id: I89e59049fe65ebc49fc03f205affa68b8fa5beb9
This commit is contained in:
parent
00c8d67f69
commit
d6d835e414
@ -63,6 +63,6 @@
|
|||||||
project_ver: "{{ scm_tag }}"
|
project_ver: "{{ scm_tag }}"
|
||||||
|
|
||||||
- name: Set project_ver if there are commits since the tag
|
- name: Set project_ver if there are commits since the tag
|
||||||
when: not commits_since_tag
|
when: commits_since_tag
|
||||||
set_fact:
|
set_fact:
|
||||||
project_ver: "{{ scm_tag }}.{{ commits_since_tag }}.{{ scm_sha }}"
|
project_ver: "{{ scm_tag }}.{{ commits_since_tag }}.{{ scm_sha }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user