Skip to content

Commit

Permalink
fix PR num on pull req
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Feb 7, 2024
1 parent 3dc9df9 commit 2e58e9f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ runs:
uses: tj-actions/branch-names@v8

# Find the pull request number
- id: bcgov
- name: pr-number-action
if: ${{github.event_name == 'pull_request'}}
uses: bcgov-nr/[email protected]
id: pr-number-id
uses: kkak10/[email protected]

# All branch names for this repo seperated by spaces
- name: Extract all active branches
Expand Down Expand Up @@ -90,7 +91,7 @@ runs:
"score": "${{ env.SCORE }}",
"user": "${{ github.actor }}",
"branch": "${{ steps.branch-name.outputs.current_branch }}",
"pr_num": "${{ steps.bcgov.outputs.pr }}",
"pr_num": "${{ steps.pr-number-id.outputs.pr }}",
"branches": "${{ env.CIU_ACTIVE_BRANCHES }}"
}' \
"${{inputs.host}}/upload"
Expand All @@ -114,7 +115,7 @@ runs:
if: ${{inputs.pr_comment == 'true' && github.event_name == 'pull_request' && steps.branch-name.outputs.base_ref_branch != '' && env.PR_HTTP_RESPONSE == '201'}}
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ steps.bcgov.outputs.pr }}
issue-number: ${{ steps.pr-number-id.outputs.pr }}
body-path: comment_body.txt
### END ###
### PUBLISHING ###
Expand Down

0 comments on commit 2e58e9f

Please sign in to comment.