Skip to content

Commit

Permalink
Merge pull request #384 from leofang/fix_last_commit_fetch
Browse files Browse the repository at this point in the history
CI: Fix fetching the latest commit from the backport branch
  • Loading branch information
leofang authored Jan 12, 2025
2 parents 57a710a + 9bcf9d6 commit c09e914
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/BACKPORT_BRANCH
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"11.8.x"
11.8.x
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 c09e914

Please sign in to comment.