From e5c6eb75a78b083a19935f12a8f3ff6461f5a88f Mon Sep 17 00:00:00 2001 From: Hoshea Date: Sat, 14 Aug 2021 10:57:22 +0800 Subject: [PATCH] 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