Skip to content

Commit 1e65128

Browse files
committed
fix: use git clone instead of curl to download notebook_runner_nbclient.py
- Replace curl download with git clone --depth 1 for reliability - Fixes 404 error when downloading from private repository - Clone repo, copy file, then cleanup temp directory
1 parent d789457 commit 1e65128

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/notebook-execution.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
execute-notebooks:
1919
name: Execute Notebooks
2020
runs-on: arc-runners-org-nvidia-ai-bp-4-gpu
21+
# runs-on: arc-runner-set-oke-org-poc-4-gpu
2122
strategy:
2223
fail-fast: false
2324
matrix:
@@ -44,9 +45,9 @@ jobs:
4445
4546
- name: Download notebook_runner_nbclient.py
4647
run: |
47-
curl -H "Authorization: token ${{ secrets.BLUEPRINT_GITHUB_TEST_TOKEN_ON_GH }}" \
48-
-o notebook_runner_nbclient.py \
49-
https://raw.githubusercontent.com/NVIDIA-AI-Blueprints/blueprint-github-test/main/utils/notebook_runner/notebook_runner_nbclient.py
48+
git clone --depth 1 https://x-access-token:${{ secrets.BLUEPRINT_GITHUB_TEST_TOKEN_ON_GH }}@github.com/NVIDIA-AI-Blueprints/blueprint-github-test.git _blueprint_test_repo
49+
cp _blueprint_test_repo/utils/notebook_runner/notebook_runner_nbclient.py .
50+
rm -rf _blueprint_test_repo
5051
chmod +x notebook_runner_nbclient.py
5152
5253
- name: Install dependencies and register Jupyter kernel
@@ -297,6 +298,7 @@ jobs:
297298
generate-summary:
298299
name: Generate Summary Report
299300
runs-on: arc-runners-org-nvidia-ai-bp-4-gpu
301+
# runs-on: arc-runner-set-oke-org-poc-4-gpu
300302
needs: execute-notebooks
301303
if: always()
302304

0 commit comments

Comments
 (0)