forked from loft-sh/devpod
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.26 KB
/
go-licenses.yaml
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
name: go-licenses
on:
push:
branches:
- main
paths:
- .github/licenses.tmpl
- .github/workflows/go-licenses.yaml
- go.mod
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
update-licenses:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Install go-licenses
run: |
go install github.com/google/[email protected]
- name: Run go-licenses
run: go-licenses report ./... > docs/pages/licenses/devpod.mdx --template .github/licenses.tmpl --ignore github.com/loft-sh
- name: Create pull request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GH_ACCESS_TOKEN }}
committer: Loft Bot <[email protected]>
branch: licenses/devpod
commit-message: "license(DevPod): Updated OSS licenses"
title: "license(DevPod): Updated OSS licenses"
body: Triggered by ${{ github.repository }}@${{ github.sha }}
signoff: true
delete-branch: true