Skip to content

Commit

Permalink
PMM-7 Check target branch when checking out UI tests (#791)
Browse files Browse the repository at this point in the history
* PMM-7 Check target branch when checking out UI tests

* PMM-7 Skip target branch if head_ref one available
  • Loading branch information
matejkubinec authored Dec 16, 2024
1 parent a0ce41d commit ddd77e0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,20 @@ jobs:
repository: percona/pmm-ui-tests
path: ./pmm-ui-tests

- name: Checkout UI tests in main branch
- name: Checkout UI tests in ${{ github.base_ref }} branch
uses: percona-platform/checkout@v2
if: ${{ steps.branch_checkout.outcome != 'success' }}
continue-on-error: true
id: target_branch_checkout
with:
token: ${{ secrets.ROBOT_TOKEN }}
ref: ${{ github.base_ref }}
repository: percona/pmm-ui-tests
path: ./pmm-ui-tests

- name: Checkout UI tests in main branch
uses: percona-platform/checkout@v2
if: ${{ steps.branch_checkout.outcome != 'success' && steps.target_branch_checkout.outcome != 'success' }}
with:
token: ${{ secrets.ROBOT_TOKEN }}
ref: main
Expand Down

0 comments on commit ddd77e0

Please sign in to comment.