Skip to content

Commit

Permalink
Add checkout to PR branch(#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
michal-gubricky authored Oct 17, 2023
1 parent d90d85e commit 2b26a57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions playbooks/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2b26a57

Please sign in to comment.