Skip to content

Commit

Permalink
Modify cov comment conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
fgamundi committed Nov 22, 2023
1 parent 151b107 commit e5b098a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ jobs:
echo "${{ vars.S3_BUCKET_URL }}/${{steps.S3.outputs.object_key}}/html/index.html"
- name: Create coverage report comment
if: ${{ needs.set-tags.outputs.coverage_report == 'true' }}
if: ${{ (needs.set-tags.outputs.coverage_report == 'true') && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push') }}
run: |
mv coverage_report.md temp_coverage_report.md
echo "## [Coverage Report](${{ vars.S3_BUCKET_URL }}/${{steps.S3.outputs.object_key}}/html/index.html)" > coverage_report.md
Expand All @@ -188,7 +188,7 @@ jobs:
echo "Generated coverage report comment"
cat coverage_report.md
- name: Find Comment
if: ${{ needs.set-tags.outputs.coverage_report == 'true' }}
if: ${{ (needs.set-tags.outputs.coverage_report == 'true') && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push') }}
uses: peter-evans/find-comment@v2
id: fc
with:
Expand Down

0 comments on commit e5b098a

Please sign in to comment.