Skip to content

Check licenses of dependencies #598

Check licenses of dependencies

Check licenses of dependencies #598

Workflow file for this run

name: Check licenses of dependencies
on:
pull_request:
paths:
- .licenses/**
- packages/*/pyproject.toml
push:
branches: [main]
paths:
- packages/*/pyproject.toml
schedule:
- cron: '0 0 * * MON-FRI'
workflow_dispatch:
branches: [main]
jobs:
check-licenses:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: 'packages/*/pyproject.toml'
- run: python -m venv venv
- run: |
. venv/bin/activate
pip install -e packages/*
- uses: jonabc/[email protected]
with:
version: '3.x'
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: licensed cache
- run: licensed status
- uses: slackapi/[email protected]
if: failure() && github.event_name == 'schedule'
with:
payload: |
{
"message": "License check for QURI Parts failed.",
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}