Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GH Action to check license info #1105

Merged
merged 3 commits into from
Apr 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/licenses.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Licenses

on:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "23 18 * * *"

jobs:
licenses:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Dependencies
run: |
make install-dev
- name: Generate Licenses
run: |
make licenses
git \
--no-pager diff \
--exit-code \
./licenses/license_info.no_versions.csv
- name: Open PR with License Changes
if: ${{ failure() }}
uses: peter-evans/create-pull-request@v5
with:
add-paths: ./licenses
commit-message: Re-generate license info
branch: licenses/license-change
branch-suffix: timestamp
delete-branch: true
title: Re-generate License Info
body: |
There was a license change detected.
Most likely, this has been triggered due to a licensing change in
one of our subdependencies, or the introducing of a new
subdependency.
This automated PR re-generates the licenses to keep them up to
date.
reviewers: adriangonz