Skip to content

Commit

Permalink
avoid using fromJSON that converts strings to numbers; add a check fo…
Browse files Browse the repository at this point in the history
…r last id lookup
  • Loading branch information
leofang committed Jan 12, 2025
1 parent aa88035 commit 9bcf9d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ jobs:
copy_labels_pattern: true
copy_requested_reviewers: true
label_pattern: to-be-backported
target_branches: ${{ fromJSON(env.OLD_BRANCH) }}
target_branches: ${{ env.OLD_BRANCH }}
conflict_resolution: draft_commit_conflicts
4 changes: 4 additions & 0 deletions .github/workflows/test-wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ jobs:
OLD_BRANCH=$(cat .github/BACKPORT_BRANCH)
OLD_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
LATEST_PRIOR_RUN_ID=$(gh run list -b ${OLD_BRANCH} -L 1 -w "CI: Build and test" -s completed -R NVIDIA/cuda-python --json databaseId | jq '.[]| .databaseId')
if [[ "$LATEST_PRIOR_RUN_ID" == "" ]]; then
echo "LATEST_PRIOR_RUN_ID not found!"
exit 1
fi
gh run download $LATEST_PRIOR_RUN_ID -p ${OLD_BASENAME} -R NVIDIA/cuda-python
ls -al $OLD_BASENAME
mkdir -p "${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}"
Expand Down

0 comments on commit 9bcf9d6

Please sign in to comment.