Skip to content

Commit 13c4bfa

Browse files
committed
Updates workflow to work better with community PRs
1 parent 7de7299 commit 13c4bfa

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -263,15 +263,12 @@ jobs:
263263
python3 -m pip install --upgrade pip uv
264264
uv pip install '.[dev]'
265265
266-
- name: Clone async-substrate-interface repo
267-
run: git clone https://github.com/opentensor/async-substrate-interface.git
268-
269266
- name: Checkout PR branch in async-substrate-interface repo
270-
working-directory: ${{ github.workspace }}/async-substrate-interface
271-
run: |
272-
git fetch origin ${{ github.event.pull_request.head.ref }}
273-
git checkout ${{ github.event.pull_request.head.ref }}
274-
echo "Current branch: $(git rev-parse --abbrev-ref HEAD)"
267+
uses: actions/checkout@v4
268+
with:
269+
repository: ${{ github.event.pull_request.head.repo.full_name }}
270+
ref: ${{ github.event.pull_request.head.ref }}
271+
path: async-substrate-interface
275272

276273
- name: Install /async-substrate-interface package
277274
working-directory: ${{ github.workspace }}/async-substrate-interface

0 commit comments

Comments
 (0)