Skip to content

chore: rebuild project template for distribution operations #1

chore: rebuild project template for distribution operations

chore: rebuild project template for distribution operations #1

Workflow file for this run

name: Update OSS Licenses
on:
push:
branches: [main]
paths:
- "**/pyproject.toml"
- ".github/workflows/oss_licenses.yml"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: oss-licenses-${{ github.ref }}
cancel-in-progress: true
jobs:
update-notice:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
pip install pip-licenses
- name: Generate OSS_LICENSES.md
run: |
. .venv/bin/activate
pip-licenses --format=markdown > OSS_LICENSES.md
- name: Commit and push if changed
run: |
if ! git diff --quiet; then
git add OSS_LICENSES.md
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -m "chore: update OSS_LICENSES.md"
git push
fi