From a43c7002b8c67a02a90492fda8b374786853c3b4 Mon Sep 17 00:00:00 2001 From: Michael Shick Date: Thu, 9 Apr 2020 08:21:49 -0700 Subject: [PATCH] feat: only provide info logging when comments are not created --- .github/workflows/test-pr.yml | 7 +++++-- index.js | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml index aa9b551..9a58be1 100644 --- a/.github/workflows/test-pr.yml +++ b/.github/workflows/test-pr.yml @@ -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!** diff --git a/index.js b/index.js index 984c55b..30e12e7 100644 --- a/index.js +++ b/index.js @@ -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; }