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

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

commit e5c6eb75a78b083a19935f12a8f3ff6461f5a88f
Author: Hoshea <[email protected]>
AuthorDate: Sat Aug 14 10:57:22 2021 +0800

    make the log level configurable
---
 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