Skip to content

Commit bf99a15

Browse files
ci: enable workflows for Pull requests
Signed-off-by: Maximilian Braun (SAP) <[email protected]>
1 parent 3369ef9 commit bf99a15

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/license-check.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
branches:
77
- main
8+
paths:
9+
- go.mod
10+
- go.sum
811

912
permissions:
1013
contents: read
@@ -27,4 +30,13 @@ jobs:
2730
2831
- name: check licenses
2932
run: |
30-
go-licenses check --allowed_licenses="Apache-2.0,BSD-3-Clause,MIT,MPL-2.0,ISC,BSD-2-Clause" ./...
33+
go-licenses check --allowed_licenses="Apache-2.0,BSD-3-Clause,MIT,MPL-2.0,ISC,BSD-2-Clause" ./... > licenses.csv 2> errors.licenses
34+
35+
- uses: actions/upload-artifact@v4
36+
with:
37+
name: logs
38+
path: |
39+
licenses.csv
40+
errors.licenses
41+
retention-days: 5
42+

0 commit comments

Comments
 (0)