-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add a workflow to update the license information
- Loading branch information
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters