Skip to content

Commit

Permalink
#28717: minor change to add secret and valid call to internal workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
victoralfaro-dotcms committed Oct 9, 2024
1 parent 039ef20 commit c2fadaa
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/issue_comp_link-issue-to-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 == ''
Expand All @@ -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')}`,
});
5 changes: 4 additions & 1 deletion .github/workflows/issue_open-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit c2fadaa

Please sign in to comment.