-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add "Hakari Fix" action (#11558)
Signed-off-by: TennyZhuang <[email protected]> Co-authored-by: TennyZhuang <[email protected]>
- Loading branch information
1 parent
2deeb3f
commit c76d2fb
Showing
1 changed file
with
33 additions
and
0 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: Hakari Fix | ||
|
||
on: | ||
pull_request: | ||
types: ["opened", "synchronize"] | ||
paths: ["Cargo.lock", "**/Cargo.toml"] | ||
|
||
jobs: | ||
hakari-fix: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Install cargo-hakari | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-hakari | ||
|
||
- name: Hakari generate | ||
run: cargo hakari generate | ||
|
||
- name: Show diff | ||
run: git diff | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Fix "cargo-hakari" |