File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -31,26 +31,12 @@ jobs:
3131 ref : main
3232 path : ushunit
3333
34- - name : Check if branch exists in uac-tests
35- id : check_branch
36- run : |
37- branch_exists=$(git ls-remote --heads https://github.com/tclahr/uac-tests.git ${{ github.ref }} | wc -l)
38- echo "branch_exists=$branch_exists" >> $GITHUB_ENV
39-
4034 - name : Checkout uac-tests repository
41- if : env.branch_exists == '1'
4235 uses : actions/checkout@v4
4336 with :
4437 repository : tclahr/uac-tests
45- ref : ${{ github.ref }}
38+ ref : ${{ github.event.pull_request.base. ref }}
4639 path : uac-tests
47-
48- - name : Checkout main branch of uac-tests if branch does not exist
49- if : env.branch_exists != '1'
50- uses : actions/checkout@v4
51- with :
52- repository : tclahr/uac-tests
53- ref : main
5440
5541 - name : Run tests
5642 working-directory : ushunit
You can’t perform that action at this time.
0 commit comments