roles/backend_checkout/tasks/main.yml in taperole-1.4.3 vs roles/backend_checkout/tasks/main.yml in taperole-1.5.0

- old
+ new

@@ -1,4 +1,17 @@ +- name: Check if there are commited changes on {{ be_app_branch }} + remote_user: "{{ deployer_user.name }}" + command: bash -lc "git fetch origin && git diff --name-only origin/{{ be_app_branch }}" + args: + chdir: "{{be_app_path}}" + register: changes_on_remote + tags: [be_deploy] + +- name: Inform User if there are no changes + debug: msg={{no_changes_found_error.split('\n')}} + when: changes_on_remote.stdout_lines == [] + tags: [be_deploy] + - name: Check out application remote_user: "{{ deployer_user.name }}" git: dest={{ be_app_path }} repo={{ be_app_repo }} version={{ be_app_branch }}