Skip to content

Commit 78d2439

Browse files
committed
fix: fix uac-tests checkout
1 parent 9d615fd commit 78d2439

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

.github/workflows/unit-testing.yaml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)