We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b207ff commit 3ea38acCopy full SHA for 3ea38ac
.github/workflows/swift-test.yml
@@ -26,6 +26,7 @@ jobs:
26
image: ${{ matrix.image }}
27
env:
28
LOCALSTACK_ENDPOINT : "http://localstack:4566"
29
+ BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
30
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
31
defaults:
32
run:
@@ -40,7 +41,8 @@ jobs:
40
41
run: |
42
git clone https://github.com/$GITHUB_REPOSITORY.git $GITHUB_WORKSPACE/src
43
echo https://github.com/$GITHUB_REPOSITORY.git $BRANCH_NAME
- cd $GITHUB_WORKSPACE/src && git checkout $BRANCH_NAME
44
+ cd $GITHUB_WORKSPACE/src
45
+ git checkout $BRANCH_NAME
46
- name: Test
47
48
make test
0 commit comments