From c2fadaa0dcded98ef8af88a67993f3988a776523 Mon Sep 17 00:00:00 2001 From: Victor Alfaro Date: Wed, 9 Oct 2024 13:23:29 -0600 Subject: [PATCH] #28717: minor change to add secret and valid call to internal workflow --- .github/workflows/issue_comp_link-issue-to-pr.yml | 13 ++++++++++++- .github/workflows/issue_open-pr.yml | 5 ++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue_comp_link-issue-to-pr.yml b/.github/workflows/issue_comp_link-issue-to-pr.yml index 19e04332595..f5eb3509ee0 100644 --- a/.github/workflows/issue_comp_link-issue-to-pr.yml +++ b/.github/workflows/issue_comp_link-issue-to-pr.yml @@ -7,6 +7,15 @@ on: description: 'Pull Request branch' type: string required: true + pr_url: + description: 'Pull Request URL' + type: string + required: true + secrets: + CI_MACHINE_TOKEN: + description: 'CI machine token' + required: true + workflow_dispatch: inputs: pr_branch: @@ -80,6 +89,8 @@ jobs: core.setOutput('pr_list', prList); core.setOutput('existing_comment_id', existingCommentId); + console.log(`pr_list: [${prList}]`); + console.log(`existing_comment_id: [${existingCommentId}]`); - name: Update or create comment if: steps.check_comment.outputs.existing_comment_id == '' @@ -98,5 +109,5 @@ jobs: owner: '${{ github.repository_owner }}', repo: '${{ github.event.repository.name }}', comment_id: ${{ steps.check_comment.outputs.existing_comment_id }}, - body: prs.join('\n'), + body: `${prs.join('\n')}`, }); diff --git a/.github/workflows/issue_open-pr.yml b/.github/workflows/issue_open-pr.yml index 37249fdeead..636551a9af7 100644 --- a/.github/workflows/issue_open-pr.yml +++ b/.github/workflows/issue_open-pr.yml @@ -7,6 +7,9 @@ on: jobs: add-issue-to-pr: name: Add Issue to PR - uses: ./.github/workflows/issue_comp-link-issue-to-pr.yml + uses: ./.github/workflows/issue_comp_link-issue-to-pr.yml with: pr_branch: ${{ github.head_ref }} + pr_url: ${{ github.event.pull_request.html_url }} + secrets: + CI_MACHINE_TOKEN: ${{ secrets.CI_MACHINE_TOKEN }}