Skip to content

Commit

Permalink
ci: add "Hakari Fix" action (#11558)
Browse files Browse the repository at this point in the history
Signed-off-by: TennyZhuang <[email protected]>
Co-authored-by: TennyZhuang <[email protected]>
  • Loading branch information
TennyZhuang and TennyZhuang authored Aug 14, 2023
1 parent 2deeb3f commit c76d2fb
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/hakari_fix.yml
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"

0 comments on commit c76d2fb

Please sign in to comment.