-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.04 KB
/
license_go.yml
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
41
42
43
44
45
46
47
48
name: License Go
on:
push:
branches:
- main
pull_request:
jobs:
license-check:
runs-on: ubuntu-latest
name: License Check
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Install go-licenses
run: go install github.com/google/go-licenses@latest
- name: Check licenses
run: go-licenses check ./...
license-report:
runs-on: ubuntu-latest
name: License Report
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Install go-licenses
run: go install github.com/google/go-licenses@latest
- name: Report to GitHub Step Summary
run: >
go-licenses report ./...
--template .github/templates/go-licenses.md.tpl
>> $GITHUB_STEP_SUMMARY
shell: bash