Skip to content

Commit 410bf1c

Browse files
committed
update Checkout PR branch in async-substrate-interface step
1 parent b6472d2 commit 410bf1c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/check-sdk-tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,9 @@ jobs:
209209
- name: Checkout PR branch in async-substrate-interface
210210
working-directory: ${{ github.workspace }}/async-substrate-interface
211211
run: |
212-
git fetch origin ${{ github.event.pull_request.head.ref }}
213-
git checkout ${{ github.event.pull_request.head.ref }}
212+
BRANCH="${{ github.event.pull_request.head.ref || github.ref_name }}"
213+
git fetch origin $BRANCH
214+
git checkout $BRANCH
214215
echo "Current branch: $(git rev-parse --abbrev-ref HEAD)"
215216
216217
- name: Install async-substrate-interface with dev dependencies

0 commit comments

Comments
 (0)