Skip to content

Commit 351539f

Browse files
Copilotleofang
andcommitted
Migrate BACKPORT_BRANCH from file to versions.yml
Co-authored-by: leofang <5534781+leofang@users.noreply.github.com>
1 parent 4033cfd commit 351539f

7 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/BACKPORT_BRANCH

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Load branch name
2929
id: get-branch
3030
run: |
31-
OLD_BRANCH=$(cat .github/BACKPORT_BRANCH)
31+
OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml)
3232
echo "OLD_BRANCH=${OLD_BRANCH}" >> $GITHUB_ENV
3333
3434
- name: Create backport pull requests

.github/workflows/build-wheel.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ jobs:
350350
&& apt install gh -y
351351
fi
352352
353-
OLD_BRANCH=$(cat .github/BACKPORT_BRANCH)
353+
OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml)
354354
OLD_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
355355
LATEST_PRIOR_RUN_ID=$(gh run list -b ${OLD_BRANCH} -L 1 -w "ci.yml" -s completed -R NVIDIA/cuda-python --json databaseId | jq '.[]| .databaseId')
356356
if [[ "$LATEST_PRIOR_RUN_ID" == "" ]]; then

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
&& apt update \
148148
&& apt install gh -y
149149
150-
OLD_BRANCH=$(cat .github/BACKPORT_BRANCH)
150+
OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml)
151151
OLD_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
152152
LATEST_PRIOR_RUN_ID=$(gh run list -b ${OLD_BRANCH} -L 1 -w "ci.yml" -s completed -R NVIDIA/cuda-python --json databaseId | jq '.[]| .databaseId')
153153
if [[ "$LATEST_PRIOR_RUN_ID" == "" ]]; then

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ jobs:
145145
env:
146146
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
147147
run: |
148-
$OLD_BRANCH = Get-Content .github/BACKPORT_BRANCH
148+
$OLD_BRANCH = yq '.backport_branch' ci/versions.yml
149149
$OLD_BASENAME = "cuda-bindings-python${env:PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
150150
$runData = gh run list -b $OLD_BRANCH -L 1 -w "ci.yml" -s completed -R NVIDIA/cuda-python --json databaseId | ConvertFrom-Json
151151
if (-not $runData -or $runData.Length -eq 0 -or -not $runData[0].databaseId -or [string]::IsNullOrEmpty($runData[0].databaseId)) {

.spdx-ignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ LICENSE
55
*.png
66
.gitattributes
77
.gitignore
8-
.github/BACKPORT_BRANCH
98
requirements*.txt
109
cuda_bindings/examples/*
1110

ci/versions.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
backport_branch: "12.9.x"
5+
46
cuda:
57
build:
68
version: "13.0.2"

0 commit comments

Comments
 (0)