feat: only provide info logging when comments are not created

This commit is contained in:
Michael Shick 2020-04-09 08:21:49 -07:00
parent f97d0a5363
commit a43c7002b8
No known key found for this signature in database
GPG key ID: ADF5BC9704BB4A61
2 changed files with 7 additions and 4 deletions

View file

@ -6,8 +6,11 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./
- name: Checkout
uses: actions/checkout@v2
- name: Add Comment
uses: ./
with:
message: |
**Hello PULL!**

View file

@ -47,7 +47,7 @@ async function run() {
}
if (!issueNumber) {
core.warning(
core.info(
"this action only works on pull_request events or other commits associated with a pull"
);
core.setOutput("comment-created", "false");
@ -72,7 +72,7 @@ async function run() {
);
if (filteredComments.length) {
core.warning("the issue already contains this message");
core.info("the issue already contains this message");
core.setOutput("comment-created", "false");
return;
}