Skip to content

Commit 013cf4a

Browse files
committed
fix: add licenses
1 parent 83e71e6 commit 013cf4a

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

.github/workflows/licenses.yml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,28 @@ on:
55
push:
66
branches:
77
- main
8+
- v3
89
- master
910

1011
jobs:
11-
check:
12+
licenses:
13+
name: License compliance
1214
runs-on: ubuntu-latest
1315
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-go@v2
16+
- name: Install script
17+
uses: ory/ci/licenses/setup@master
1618
with:
17-
go-version: "1.18"
18-
- uses: actions/setup-node@v2
19+
token: ${{ secrets.ORY_BOT_PAT || secrets.GITHUB_TOKEN }}
20+
- name: Check licenses
21+
uses: ory/ci/licenses/check@master
22+
- name: Write, commit, push licenses
23+
uses: ory/ci/licenses/write@master
24+
if:
25+
${{ github.ref == 'refs/heads/main' || github.ref ==
26+
'refs/heads/master' || github.ref == 'refs/heads/v3' }}
1927
with:
20-
node-version: "18.10"
21-
- run: make licenses
28+
author-email:
29+
${{ secrets.ORY_BOT_PAT &&
30+
31+
format('{0}@users.noreply.github.com', github.actor) }}
32+
author-name: ${{ secrets.ORY_BOT_PAT && 'ory-bot' || github.actor }}

0 commit comments

Comments
 (0)