Jan Kundrát | 3a01643 | 2020-04-07 22:47:49 +0200 | [diff] [blame] | 1 | - name: Prepare git submodules |
| 2 | shell: | |
Jan Kundrát | 473cdf5 | 2020-04-14 13:34:33 +0200 | [diff] [blame] | 3 | PREVIOUS_BRANCH=$(git rev-parse --abbrev-ref HEAD) |
| 4 | echo "{{ item.key }}: ${PREVIOUS_BRANCH}" |
| 5 | git checkout -b zuul_origin_${PREVIOUS_BRANCH} origin/${PREVIOUS_BRANCH} |
Jan Kundrát | 3a01643 | 2020-04-07 22:47:49 +0200 | [diff] [blame] | 6 | args: |
| 7 | chdir: "{{ ansible_user_dir }}/{{ item.value.src_dir }}" |
Jan Kundrát | a6e1474 | 2020-04-08 10:34:06 +0200 | [diff] [blame] | 8 | loop: "{{ query('dict', zuul.projects) }}" |