diff --git a/.github/workflows/conda-cpp-tests.yaml b/.github/workflows/conda-cpp-tests.yaml index a4e40abf..c2d01414 100644 --- a/.github/workflows/conda-cpp-tests.yaml +++ b/.github/workflows/conda-cpp-tests.yaml @@ -29,6 +29,12 @@ on: required: false type: string default: "-e _NOOP" + build_workflow_name: + description: | + Name of a workflow file that produced artifacts to be downloaded in this run. + If not set (the default), artifact-handling scripts use RAPIDS-conventional defaults (like "build.yaml" when "build_type == nightly"). + required: false + type: string defaults: run: @@ -157,17 +163,13 @@ jobs: extra_attributes: "rapids.PACKAGER=conda,rapids.CUDA_VER=${{ matrix.CUDA_VER }},rapids.PY_VER=${{ matrix.PY_VER }},rapids.ARCH=${{ matrix.ARCH }},rapids.LINUX_VER=${{ matrix.LINUX_VER }},rapids.GPU=${{ matrix.GPU }},rapids.DRIVER=${{ matrix.DRIVER }},rapids.DEPENDENCIES=${{ matrix.DEPENDENCIES }}" - name: Standardize repository information - env: - RAPIDS_REPOSITORY: ${{ inputs.repo || github.repository }} - RAPIDS_REF_NAME: ${{ inputs.branch || github.ref_name }} - RAPIDS_NIGHTLY_DATE: ${{ inputs.date }} - run: | - { - echo "RAPIDS_REPOSITORY=${RAPIDS_REPOSITORY}" - echo "RAPIDS_SHA=$(git rev-parse HEAD)" - echo "RAPIDS_REF_NAME=${RAPIDS_REF_NAME}" - echo "RAPIDS_NIGHTLY_DATE=${RAPIDS_NIGHTLY_DATE}" - } >> "${GITHUB_ENV}" + uses: rapidsai/shared-actions/rapids-github-info@main + with: + repo: ${{ inputs.repo }} + branch: ${{ inputs.branch }} + date: ${{ inputs.date }} + sha: ${{ inputs.sha }} + build_workflow_name: ${{ inputs.build_workflow_name }} - name: Setup proxy cache uses: nv-gha-runners/setup-proxy-cache@main diff --git a/.github/workflows/conda-python-tests.yaml b/.github/workflows/conda-python-tests.yaml index 3ac266b7..9e908aab 100644 --- a/.github/workflows/conda-python-tests.yaml +++ b/.github/workflows/conda-python-tests.yaml @@ -32,6 +32,12 @@ on: required: false type: string default: "-e _NOOP" + build_workflow_name: + description: | + Name of a workflow file that produced artifacts to be downloaded in this run. + If not set (the default), artifact-handling scripts use RAPIDS-conventional defaults (like "build.yaml" when "build_type == nightly"). + required: false + type: string defaults: run: @@ -153,17 +159,13 @@ jobs: fetch-depth: 0 - name: Standardize repository information - env: - RAPIDS_REPOSITORY: ${{ inputs.repo || github.repository }} - RAPIDS_REF_NAME: ${{ inputs.branch || github.ref_name }} - RAPIDS_NIGHTLY_DATE: ${{ inputs.date }} - run: | - { - echo "RAPIDS_REPOSITORY=${RAPIDS_REPOSITORY}" - echo "RAPIDS_SHA=$(git rev-parse HEAD)" - echo "RAPIDS_REF_NAME=${RAPIDS_REF_NAME}" - echo "RAPIDS_NIGHTLY_DATE=${RAPIDS_NIGHTLY_DATE}" - } >> "${GITHUB_ENV}" + uses: rapidsai/shared-actions/rapids-github-info@main + with: + repo: ${{ inputs.repo }} + branch: ${{ inputs.branch }} + date: ${{ inputs.date }} + sha: ${{ inputs.sha }} + build_workflow_name: ${{ inputs.build_workflow_name }} # This has to be AFTER the checkout step. It creates a telemetry-artifacts directory, # and the checkout step would destroy it. diff --git a/.github/workflows/custom-job.yaml b/.github/workflows/custom-job.yaml index 1085590d..43abbbcb 100644 --- a/.github/workflows/custom-job.yaml +++ b/.github/workflows/custom-job.yaml @@ -33,6 +33,12 @@ on: type: boolean required: false default: false + build_workflow_name: + description: | + Name of a workflow file that produced artifacts to be downloaded in this run. + If not set (the default), artifact-handling scripts use RAPIDS-conventional defaults (like "build.yaml" when "build_type == nightly"). + required: false + type: string defaults: run: @@ -88,17 +94,13 @@ jobs: run: | echo "RAPIDS_BASE_BRANCH=${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.ref }}" >> "${GITHUB_ENV}" - name: Standardize repository information - env: - RAPIDS_REPOSITORY: ${{ inputs.repo || github.repository }} - RAPIDS_REF_NAME: ${{ inputs.branch || github.ref_name }} - RAPIDS_NIGHTLY_DATE: ${{ inputs.date }} - run: | - { - echo "RAPIDS_REPOSITORY=${RAPIDS_REPOSITORY}" - echo "RAPIDS_SHA=$(git rev-parse HEAD)" - echo "RAPIDS_REF_NAME=${RAPIDS_REF_NAME}" - echo "RAPIDS_NIGHTLY_DATE=${RAPIDS_NIGHTLY_DATE}" - } >> "${GITHUB_ENV}" + uses: rapidsai/shared-actions/rapids-github-info@main + with: + repo: ${{ inputs.repo }} + branch: ${{ inputs.branch }} + date: ${{ inputs.date }} + sha: ${{ inputs.sha }} + build_workflow_name: ${{ inputs.build_workflow_name }} # Per the docs at https://docs.github.com/en/rest/rate-limit/rate-limit?apiVersion=2022-11-28#get-rate-limit-status-for-the-authenticated-user, # checking '/rate_limit | jq .' should not itself count against any rate limits. - name: Check GitHub API rate limits diff --git a/.github/workflows/wheels-test.yaml b/.github/workflows/wheels-test.yaml index 8fe061de..7d45b984 100644 --- a/.github/workflows/wheels-test.yaml +++ b/.github/workflows/wheels-test.yaml @@ -41,6 +41,12 @@ on: required: false type: string default: '' + build_workflow_name: + description: | + Name of a workflow file that produced artifacts to be downloaded in this run. + If not set (the default), artifact-handling scripts use RAPIDS-conventional defaults (like "build.yaml" when "build_type == nightly"). + required: false + type: string defaults: run: @@ -176,6 +182,7 @@ jobs: branch: ${{ inputs.branch }} date: ${{ inputs.date }} sha: ${{ inputs.sha }} + build_workflow_name: ${{ inputs.build_workflow_name }} - name: Setup proxy cache uses: nv-gha-runners/setup-proxy-cache@main