diff --git a/playbooks/e2e.yaml b/playbooks/e2e.yaml index 6edf84d5..866aa43a 100644 --- a/playbooks/e2e.yaml +++ b/playbooks/e2e.yaml @@ -39,6 +39,12 @@ ansible.builtin.set_fact: git_branch_name: "{{ git_reference | default(pull_request.json.head.ref) | default(git_reference_default) }}" git_repository_url: "{{ git_repo | default(pull_request.json.head.repo.clone_url) | default(git_repo_default) }}" + - name: Checkout PR branch + ansible.builtin.git: + repo: "{{ git_repository_url }}" + dest: "{{ zuul.project.src_dir }}" + version: "{{ git_branch_name }}" + when: zuul.change is defined - name: Create environment file ansible.builtin.template: src: "templates/environment.tfvars.j2"