-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement action for license checkers
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: 'License checker and lister' | ||
description: 'List and check licenses' | ||
input: | ||
token: | ||
description: Personal access token | ||
required: false | ||
default: ${{ github.token }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# We must fetch at least the immediate parents so that if this is | ||
# a pull request then we can checkout the head. | ||
fetch-depth: 2 | ||
token: ${{ inputs.token }} | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.22" | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "18" | ||
- name: Install license scanner | ||
run: curl https://raw.githubusercontent.com/ory/ci/master/licenses/install | sh | ||
shell: bash | ||
- name: List and write licenses | ||
run: | | ||
mkdir -p .reports | ||
.bin/list-licenses > .reports/dep-licenses.csv | ||
shell: bash | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' | ||
- name: Commit Milestone Documentation | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' | ||
uses: EndBug/[email protected] | ||
with: | ||
message: "autogen(docs): update milestone document" | ||
author_name: aeneasr | ||
author_email: "[email protected]" | ||
- name: Check licenses | ||
run: .bin/licenses | ||
shell: bash | ||
< |