project-config/playbooks/proposal/propose-updates.yaml
Andreas Jaeger bf61f85cf8 Fix REFNAME in propose_update.sh
ZUUL_REFNAME is not set in periodic pipelines.

Provide optionally branch and use that one instead if REFNAME is not set
to mimic how the script was used in v2.

Change-Id: I3a514b5ffd9d0797c1bd43a0762bd5709630b1cd
2017-10-17 20:18:07 +02:00

9 lines
284 B
YAML

- hosts: all
tasks:
- name: Run propose_update.sh script
command: "{{ ansible_user_dir }}/scripts/propose_update.sh {{ update_target }} {{zuul.branch}}"
args:
chdir: "src/{{ zuul.project.canonical_name }}"
environment: '{{ zuul | zuul_legacy_vars }}'