From a2f590d283868d3b2d4542784346668b8dd7e384 Mon Sep 17 00:00:00 2001 From: Simon Adorf Date: Thu, 23 Oct 2025 13:32:45 -0500 Subject: [PATCH] CI: Fix the auto-release assignment GA job. Following adoption of the new branch strategy. See https://docs.rapids.ai/notices/rsn0047/ for details. --- .../workflows/pr_issue_status_automation.yml | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pr_issue_status_automation.yml b/.github/workflows/pr_issue_status_automation.yml index b87cc1b6fd..e51bbd1701 100644 --- a/.github/workflows/pr_issue_status_automation.yml +++ b/.github/workflows/pr_issue_status_automation.yml @@ -33,30 +33,34 @@ jobs: UPDATE_LINKED_ISSUES: true secrets: inherit - process-branch-name: + get-release-version: if: ${{ github.event.pull_request.state == 'open' && needs.get-project-id.outputs.ITEM_PROJECT_ID != '' }} needs: get-project-id runs-on: ubuntu-latest outputs: - branch-name: ${{ steps.process-branch-name.outputs.branch-name }} + release-version: ${{ steps.parse-version.outputs.release-version }} steps: - - name: Extract branch name - id: process-branch-name + - name: Checkout repository + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.base.ref }} + - name: Parse VERSION file + id: parse-version run: | - branch=${{ github.event.pull_request.base.ref }} - release=${branch#branch-} - echo "branch-name=$release" >> "$GITHUB_OUTPUT" + version=$(cat VERSION | head -n 1) + release=$(echo "$version" | cut -d. -f1,2) + echo "release-version=$release" >> "$GITHUB_OUTPUT" update-release: # This job sets the PR and its linked issues to the release they are targeting uses: rapidsai/shared-workflows/.github/workflows/project-get-set-single-select-field.yaml@main if: ${{ github.event.pull_request.state == 'open' && needs.get-project-id.outputs.ITEM_PROJECT_ID != '' }} - needs: [get-project-id, process-branch-name] + needs: [get-project-id, get-release-version] with: PROJECT_ID: "PVT_kwDOAp2shc4AA8lR" SINGLE_SELECT_FIELD_ID: "PVTSSF_lADOAp2shc4AA8lRzgFqH3Y" SINGLE_SELECT_FIELD_NAME: "Release" - SINGLE_SELECT_OPTION_VALUE: "${{ needs.process-branch-name.outputs.branch-name }}" + SINGLE_SELECT_OPTION_VALUE: "${{ needs.get-release-version.outputs.release-version }}" ITEM_PROJECT_ID: "${{ needs.get-project-id.outputs.ITEM_PROJECT_ID }}" ITEM_NODE_ID: "${{ github.event.pull_request.node_id }}" UPDATE_ITEM: true