Skip to content

Commit

Permalink
debug: add comment_coverage permissions-remove-1
Browse files Browse the repository at this point in the history
Signed-off-by: gouravkrosx <gouravgreatkr@gmail.com>
  • Loading branch information
gouravkrosx committed May 1, 2024
1 parent 2b5dceb commit 2615524
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/coverage_stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,19 @@ jobs:
name: coverage-report-html
path: coverage.html

comment-coverage:
needs: coverage
uses: ./.github/workflows/comment_coverage.yml
with:
issue-number: ${{ github.event.pull_request.number }}
artifact-url: ${{ steps.artifact-upload-step.outputs.artifact-url }}
- name: Comment Coverage on PR
if: success()
runs-on: ubuntu-latest
steps:
- name: Trigger Comment Workflow
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.actions.workflowDispatch({
workflow_file: '.github/workflows/comment_coverage.yml',
inputs: {
issue-number: ${{ github.event.client_payload.issue-number }},
artifact-url: ${{ steps.artifact-upload-step.outputs.artifact-url }}
}
})

0 comments on commit 2615524

Please sign in to comment.