From 592619323450f5c9c31d46b572f1461d25591ac7 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Fri, 24 Jan 2025 16:43:25 -0500 Subject: [PATCH 1/3] fix checkout in upload workflow --- .github/workflows/release-upload.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-upload.yml b/.github/workflows/release-upload.yml index 5fa58de92c..d88d3632f7 100644 --- a/.github/workflows/release-upload.yml +++ b/.github/workflows/release-upload.yml @@ -29,7 +29,10 @@ jobs: ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ inputs.git-tag }} steps: - name: Checkout Source - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ inputs.git-tag }} - name: Create Release Directory run: mkdir -p release From 821b31c0134e01b6db5e53163c0f0a2335d4a772 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Fri, 24 Jan 2025 16:49:41 -0500 Subject: [PATCH 2/3] take run-id in build-docs --- .github/workflows/build-docs.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 17c6498c50..791285d1e6 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -21,6 +21,11 @@ on: required: false default: "" type: string + run-id: + description: "The GHA run ID that generated validated artifacts" + required: false + default: ${{ github.run_id }} + type: string is-release: description: "Are we building release docs?" required: false @@ -95,6 +100,7 @@ jobs: with: name: cuda-python-wheel path: . + run-id: ${{ inputs.run-id }} - name: Display structure of downloaded cuda-python artifacts run: | @@ -106,6 +112,7 @@ jobs: with: name: ${{ env.CUDA_BINDINGS_ARTIFACT_NAME }} path: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }} + run-id: ${{ inputs.run-id }} - name: Display structure of downloaded cuda.bindings artifacts run: | @@ -117,6 +124,7 @@ jobs: with: name: ${{ env.CUDA_CORE_ARTIFACT_NAME }} path: ${{ env.CUDA_CORE_ARTIFACTS_DIR }} + run-id: ${{ inputs.run-id }} - name: Display structure of downloaded cuda.core build artifacts run: | From 18c27030568a4e02a388cb91862d4ed9290e492a Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Fri, 24 Jan 2025 16:51:34 -0500 Subject: [PATCH 3/3] pass run-id to build-docs --- .github/workflows/release.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b93a1e0b0..ebedcb9d3f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,10 +32,6 @@ on: options: - testpypi - pypi - #print_tags: - # description: 'True to print to STDOUT' - # required: true - # type: boolean defaults: run: @@ -92,6 +88,7 @@ jobs: build-ctk-ver: ${{ inputs.build-ctk-ver }} component: ${{ inputs.component }} git-tag: ${{ inputs.git-tag }} + run-id: ${{ inputs.run-id }} is-release: true upload-archive: