-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
40 lines (39 loc) · 1.27 KB
/
action.yml
File metadata and controls
40 lines (39 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Depot Dependency
description: A license tool to check dependencies' licenses.
inputs:
config-file:
description: The configuration file, for example, ".depot.yml"
required: false
default: .depot.yml
cache-file:
description: The cache file for license
required: false
default: .depot.cache.json
license-file:
description: The output file for the `save` command
required: false
default: LICENSES_DEP
command:
description: |
Which mode License Eye should be run in. Choices are `print`, `lint` or `save`. The
default value is `save`.
required: false
default: save
flags:
description: |
Extra flags appended to the command, for example, --summary=path/to/template.tmpl
required: false
runs:
using: "composite"
steps:
- name: Set up Go 1.20
uses: actions/setup-go@v4
with:
go-version: '>=1.20.0'
cache-dependency-path: ${{ github.action_path }}/go.sum
- shell: bash
run: go install github.com/modfin/depot/cmd/depot@v0.0.11
- shell: bash
env:
GITHUB_TOKEN: ${{ inputs.token }}
run: depot --config-file=${{ inputs.config-file }} --license-file=${{ inputs.license-file }} --cache-file=${{ inputs.cache-file }} ${{ inputs.flags }} ${{ inputs.command }}