Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the log level configurable #56

Merged
merged 1 commit into from
Aug 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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