Skip to content

Commit 950ebc1

Browse files
committed
Reference workflow file name for old branch
Switch to use the workflow file name as the name is getting missed in the merged code in main. Verified the behavior locally too.
1 parent b1085ca commit 950ebc1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test-wheel-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ jobs:
234234
235235
OLD_BRANCH=$(cat .github/BACKPORT_BRANCH)
236236
OLD_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
237-
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')
237+
LATEST_PRIOR_RUN_ID=$(gh run list -b ${OLD_BRANCH} -L 1 -w "build-and-test.yml" -s completed -R NVIDIA/cuda-python --json databaseId | jq '.[]| .databaseId')
238238
if [[ "$LATEST_PRIOR_RUN_ID" == "" ]]; then
239239
echo "LATEST_PRIOR_RUN_ID not found!"
240240
exit 1

.github/workflows/test-wheel-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ jobs:
187187
run: |
188188
$OLD_BRANCH = Get-Content .github/BACKPORT_BRANCH
189189
$OLD_BASENAME = "cuda-bindings-python${env:PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
190-
$runData = gh run list -b $OLD_BRANCH -L 1 -w "CI: Build and test" -s completed -R NVIDIA/cuda-python --json databaseId | ConvertFrom-Json
190+
$runData = gh run list -b $OLD_BRANCH -L 1 -w "build-and-test.yml" -s completed -R NVIDIA/cuda-python --json databaseId | ConvertFrom-Json
191191
if (-not $runData -or $runData.Length -eq 0 -or -not $runData[0].databaseId -or [string]::IsNullOrEmpty($runData[0].databaseId)) {
192192
Write-Host "LATEST_PRIOR_RUN_ID not found!"
193193
exit 1

0 commit comments

Comments
 (0)