This is an automated email from the ASF dual-hosted git repository.

kezhenxu94 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-eyes.git


The following commit(s) were added to refs/heads/main by this push:
     new 85497d2  Make the log level in GHA configurable (#56)
85497d2 is described below

commit 85497d2838c19f279fe2d4d05db0ee9dcb4b7ebc
Author: Hoshea Jiang <[email protected]>
AuthorDate: Sat Aug 14 11:02:13 2021 +0800

    Make the log level in GHA configurable (#56)
---
 Dockerfile | 2 +-
 README.md  | 3 +++
 action.yml | 7 +++++++
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index d1b7166..02833a7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -38,4 +38,4 @@ RUN apk add --no-cache gcc musl-dev
 
 WORKDIR /github/workspace/
 
-ENTRYPOINT ["/bin/license-eye", "-v", "debug"]
+ENTRYPOINT ["/bin/license-eye"]
diff --git a/README.md b/README.md
index b457c42..e865466 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,9 @@ To use License-Eye in GitHub Actions, add a step in your 
GitHub workflow.
   uses: apache/skywalking-eyes@main      # always prefer to use a revision 
instead of `main`.
   env:
     GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}  # needed only when you want 
License-Eye to comment on the pull request.
+  # with:
+      # Optional: set the log level. The default value is `info`.
+      # log: debug
 ```
 
 Add a `.licenserc.yaml` in the root of your project, for Apache Software 
Foundation projects, the following configuration should be enough.
diff --git a/action.yml b/action.yml
index e939031..76703fc 100644
--- a/action.yml
+++ b/action.yml
@@ -20,9 +20,16 @@ description: A full-featured license tool to check and fix 
license headers and d
 branding:
   icon: book
   color: orange
+inputs:
+  log:
+    description: The level of log, for example, "debug" or "info"
+    required: false
+    default: info
 runs:
   using: docker
   image: Dockerfile
   args:
+    - -v
+    - ${{ inputs.log }}
     - header
     - check

Reply via email to