-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tweak: add compared and has-changed outputs
- Loading branch information
1 parent
b2d81f8
commit 6f3bf6d
Showing
7 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ jobs: | |
comment-author: 'github-actions[bot]' | ||
- name: Create or Update Comment | ||
uses: peter-evans/[email protected] | ||
if: github.event_name == 'pull_request' | ||
if: github.event_name == 'pull_request' && steps.coverage.outputs.compared == 'true' && steps.coverage.outputs.has-changed == 'true' | ||
with: | ||
issue-number: ${{ github.event.number }} | ||
body-path: ${{ steps.coverage.outputs.comment-file }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,7 +56,9 @@ Example: adding a comment to the PR with the summary | |
id: coverage | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Find Comment | ||
- name: Write comment | ||
# Do it only if there were changes in coverage | ||
if: (steps.coverage.outputs.compared == 'true') && (steps.coverage.outputs.has-changed == 'true') | ||
uses: peter-evans/[email protected] | ||
if: github.event_name == 'pull_request' | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters