-
Notifications
You must be signed in to change notification settings - Fork 831
49 lines (47 loc) · 1.51 KB
/
license.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
49
name: V2 Licenses
on:
push:
branches: [v2]
workflow_dispatch:
jobs:
licenses:
runs-on: ubuntu-latest
if: github.repository == 'SeldonIO/seldon-core' # Do not run this on forks.
steps:
- name: Get github access token
run: |
echo ${{ secrets.GH_API_TOKEN }} > ~/.github_api_token
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: "1.22"
cache: false
- name: Install Dependencies
run: |
make install-go-license-tools
- name: Generate Licenses
run: |
make update-3rd-party-licenses
git --no-pager diff --name-only --exit-code
- name: Open PR with License Changes
if: ${{ failure() }}
uses: peter-evans/create-pull-request@v6
with:
commit-message: Re-generate license info
branch: licenses/license-change
branch-suffix: timestamp
delete-branch: true
title: Re-generate License Info
body: "
# License Change Detected :warning:\n
Most likely, this has been triggered due to a licensing change in
one of our subdependencies, or the introduction of a new
subdependency.
This automated PR will re-generate the licenses to keep them up to
date."
reviewers: sakoush, lc525