Skip to content

Commit

Permalink
fix: fix uac-tests checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
tclahr committed Aug 17, 2024
1 parent 9d615fd commit 78d2439
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/unit-testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,12 @@ jobs:
ref: main
path: ushunit

- name: Check if branch exists in uac-tests
id: check_branch
run: |
branch_exists=$(git ls-remote --heads https://github.com/tclahr/uac-tests.git ${{ github.ref }} | wc -l)
echo "branch_exists=$branch_exists" >> $GITHUB_ENV
- name: Checkout uac-tests repository
if: env.branch_exists == '1'
uses: actions/checkout@v4
with:
repository: tclahr/uac-tests
ref: ${{ github.ref }}
ref: ${{ github.event.pull_request.base.ref }}
path: uac-tests

- name: Checkout main branch of uac-tests if branch does not exist
if: env.branch_exists != '1'
uses: actions/checkout@v4
with:
repository: tclahr/uac-tests
ref: main

- name: Run tests
working-directory: ushunit
Expand Down

0 comments on commit 78d2439

Please sign in to comment.