Skip to content

Commit

Permalink
Make the log level in GHA configurable (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
fgksgf authored Aug 14, 2021
1 parent 23ce882 commit 85497d2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
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

0 comments on commit 85497d2

Please sign in to comment.