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 6b3a8eb7ca8371b6ff6527c8a8e17cd68d3ccf5b Author: Hoshea <[email protected]> AuthorDate: Mon Aug 16 14:53:57 2021 +0800 make the config file configurable --- README.md | 2 ++ action.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index e865466..61dd4a0 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ To use License-Eye in GitHub Actions, add a step in your GitHub workflow. # with: # Optional: set the log level. The default value is `info`. # log: debug + # Optional: set the config file. The default value is `.licenserc.yaml`. + # config: .licenserc.yaml ``` 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 76703fc..2f9efea 100644 --- a/action.yml +++ b/action.yml @@ -25,11 +25,17 @@ inputs: description: The level of log, for example, "debug" or "info" required: false default: info + config: + description: The configuration file, for example, ".licenserc.yaml" + required: false + default: .licenserc.yaml runs: using: docker image: Dockerfile args: - -v - ${{ inputs.log }} + - -c + - ${{ inputs.config }} - header - check
