-
Notifications
You must be signed in to change notification settings - Fork 322
53 lines (43 loc) · 1.45 KB
/
oss.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
50
51
52
53
name: OSS
on:
workflow_dispatch:
jobs:
attribution:
strategy:
matrix:
component: [cart, catalog, checkout, orders, ui]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: "corretto"
java-version: "17"
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: actions/setup-go@v3
with:
go-version: "1.18"
- name: Install
run: |
git clone https://github.com/oss-review-toolkit/ort.git /tmp/ort
(cd /tmp/ort && git checkout 7b210df2e29f32586a51d2ca8984b17d155e79b3 && ./gradlew installDist)
echo "/tmp/ort/cli/build/install/ort/bin" >> $GITHUB_PATH
go install github.com/google/go-licenses@v1.5.0
(cd oss/attribution && pip3 install -r requirements.txt)
- name: Run
env:
COMPONENT_NAME: ${{ matrix.component }}
run: |
bash oss/run.sh -s $COMPONENT_NAME
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
add-path: src/**/ATTRIBUTION.md
branch: attribution-updates-${{ matrix.component }}
title: "chore(deps): Update OSS attribution for ${{ matrix.component }}"
commit-message: "[Automated] Updating OSS attribution documents"
delete-branch: true
labels: |
automerge