Skip to content

Commit 3ea38ac

Browse files
author
Andrea Scuderi
committedAug 25, 2024
Fix GHA
1 parent 1b207ff commit 3ea38ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎.github/workflows/swift-test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
image: ${{ matrix.image }}
2727
env:
2828
LOCALSTACK_ENDPOINT : "http://localstack:4566"
29+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
2930
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
3031
defaults:
3132
run:
@@ -40,7 +41,8 @@ jobs:
4041
run: |
4142
git clone https://github.com/$GITHUB_REPOSITORY.git $GITHUB_WORKSPACE/src
4243
echo https://github.com/$GITHUB_REPOSITORY.git $BRANCH_NAME
43-
cd $GITHUB_WORKSPACE/src && git checkout $BRANCH_NAME
44+
cd $GITHUB_WORKSPACE/src
45+
git checkout $BRANCH_NAME
4446
- name: Test
4547
run: |
4648
make test

0 commit comments

Comments
 (0)