Skip to content

Commit

Permalink
Add GitHub Action for Dash License Check
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Weber <[email protected]>
  • Loading branch information
wba2hi committed Dec 7, 2023
1 parent 57b7ec8 commit dfab3d8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dash.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: dash

on:
pull_request:
push:
branches:
- main

jobs:
check-dash:
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v3

# taken from here: https://github.com/eclipse/dash-licenses#example-python
- name: Create Dash Dependency Report
run: |
cat kuksa-client/requirements.txt | grep -v \# \
| sed -E -e 's|([^= ]+)==([^= ]+)|pypi/pypi/-/\1/\2|' -e 's| ||g' \
| sort | uniq \
> dependencies.txt
- name: Dash license check
uses: eclipse-kuksa/kuksa-actions/check-dash@2
with:
dashinput: ${{github.workspace}}/dependencies.txt

0 comments on commit dfab3d8

Please sign in to comment.