Skip to content

Commit 4fd91fb

Browse files
authored
ci: remove manual run-id from release workflow (#1753)
The release workflow already auto-detects the validated tag-triggered run, so the manual input and release instructions only add unnecessary operator work. Made-with: Cursor
1 parent cc5e97e commit 4fd91fb

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

.github/RELEASE-core.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,11 @@ publish to PyPI.
131131
1. Go to **Actions > CI: Release** and run the workflow with:
132132
- **Component**: `cuda-core`
133133
- **The release git tag**: `cuda-core-v0.6.0`
134-
- **The GHA run ID that generated validated artifacts**: This is the
135-
run ID of the successful tag-triggered CI run from the previous step.
136-
You can find it in the URL when viewing the run in the Actions tab
137-
(e.g. `https://github.com/NVIDIA/cuda-python/actions/runs/123456789`
138-
— the run ID is `123456789`).
139134
- **build-ctk-ver**: the `cuda.build.version` from
140135
[`ci/versions.yml`](../ci/versions.yml) (e.g. `13.1.1`)
141136
- **Which wheel index to publish to**: `testpypi`
137+
The workflow automatically looks up the successful tag-triggered CI run
138+
for the selected release tag.
142139

143140
2. Wait for the workflow to complete.
144141

.github/workflows/release.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ on:
2323
description: "The release git tag"
2424
required: true
2525
type: string
26-
run-id:
27-
description: "The GHA run ID that generated validated artifacts (optional - auto-detects successful tag-triggered CI run for git-tag)"
28-
required: false
29-
type: string
30-
default: ""
3126
build-ctk-ver:
3227
type: string
3328
required: true
@@ -60,15 +55,10 @@ jobs:
6055
env:
6156
GH_TOKEN: ${{ github.token }}
6257
run: |
63-
if [[ -n "${{ inputs.run-id }}" ]]; then
64-
echo "Using provided run ID: ${{ inputs.run-id }}"
65-
echo "run-id=${{ inputs.run-id }}" >> $GITHUB_OUTPUT
66-
else
67-
echo "Auto-detecting successful tag-triggered run ID for tag: ${{ inputs.git-tag }}"
68-
RUN_ID=$(./ci/tools/lookup-run-id "${{ inputs.git-tag }}" "${{ github.repository }}")
69-
echo "Auto-detected run ID: $RUN_ID"
70-
echo "run-id=$RUN_ID" >> $GITHUB_OUTPUT
71-
fi
58+
echo "Auto-detecting successful tag-triggered run ID for tag: ${{ inputs.git-tag }}"
59+
RUN_ID=$(./ci/tools/lookup-run-id "${{ inputs.git-tag }}" "${{ github.repository }}")
60+
echo "Auto-detected run ID: $RUN_ID"
61+
echo "run-id=$RUN_ID" >> $GITHUB_OUTPUT
7262
7363
check-tag:
7464
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)