Skip to content

Commit

Permalink
Simplify 'Set facts' task name
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
  • Loading branch information
chess-knight committed Aug 8, 2024
1 parent 400ecd8 commit 8a5cc0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions playbooks/openstack/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
X-GitHub-Api-Version: 2022-11-28
register: pull_request
when: zuul.change is defined # execute when the e2e pipeline is initiated on a PR
- name: |
Set facts -
In cases where e2e is not executed on the PR, the main branch is used for the pipeline.
- name: Set facts when the e2e pipeline is initiated on a PR
ansible.builtin.set_fact:
git_branch_name: "{{ pull_request.json.head.ref }}"
git_repository_url: "{{ pull_request.json.head.repo.clone_url }}"
Expand Down

0 comments on commit 8a5cc0c

Please sign in to comment.