Skip to content

ci: add a workflow to update the license information #1

ci: add a workflow to update the license information

ci: add a workflow to update the license information #1

Workflow file for this run

name: Update Third-Party Licenses Information
on:
push:
branches: ["main"]
paths:
- "Cargo.lock"
- "about.toml"
- "about.hbs"
jobs:
update-license:
name: Update Third-Party Licenses Information
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install cargo-about
uses: taiki-e/install-action@v2
with:
tool: cargo-about
- name: Generate Third-Party Licenses Information
run: cargo about generate about.hbs > licenses.html
- name: Setup Git User
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Commit Changes
run: |
git add licenses.html
git commit -m "chore(deps): update third-party licenses information"
- name: Push Changes
run: git push