From 9ff13740f82979252cf6e837db10a127a3ceea65 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 7 Mar 2018 07:51:45 +0100 Subject: [PATCH] Fix version-from-git syntax Fix "Syntax Error while loading YAML" with proper ordering of block. Change-Id: I8a59856dbc91bec03adf193128ca6cc0ff7a7b54 --- roles/version-from-git/tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/version-from-git/tasks/main.yaml b/roles/version-from-git/tasks/main.yaml index 17bf31686..d2c33f735 100644 --- a/roles/version-from-git/tasks/main.yaml +++ b/roles/version-from-git/tasks/main.yaml @@ -61,8 +61,8 @@ # Some repos, like storyboard-webclient, do not have any tags. git describe # throws an error in those repos. To be consistent, do a commit count the # hard way. -- block: - when: not commits_since_tag_output.rc != 0 +- when: not commits_since_tag_output.rc != 0 + block: - name: Get commits since the beginning command: git rev-list HEAD --count