diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index 51141e8..f607e63 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -18,6 +18,9 @@ with: token: ${{ secrets.GH_TOKEN }} - name: pre-commit - uses: liblaf/template/.github/actions/pre-commit@main + uses: liblaf/pre-commit-hooks@main + - name: Commit + if: always() + uses: liblaf/pre-commit-hooks/.github/actions/commit@main with: - autofix: true + message: "ci(pre-commit): auto fixes from pre-commit hooks" diff --git a/.github/workflows/template.yaml b/.github/workflows/template.yaml index a72eaa8..b1abbc2 100644 --- a/.github/workflows/template.yaml +++ b/.github/workflows/template.yaml @@ -1,4 +1,4 @@ -name: Template Repository +name: Repository Template on: workflow_dispatch: @@ -10,6 +10,7 @@ template: name: Template permissions: + actions: write contents: write runs-on: ubuntu-latest steps: @@ -17,7 +18,8 @@ uses: actions/checkout@v4 with: token: ${{ secrets.GH_TOKEN }} - - name: Sync with Template Repository + - name: Sync with Repository Template uses: liblaf/template@main with: - push: true + token: ${{ secrets.GH_TOKEN }} + commit: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bab7120..dac8187 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,8 +37,8 @@ files: \.(bash|sh|zsh)(\.tmpl)?$ types: - text - - repo: https://github.com/liblaf/template - rev: v1.0.0 + - repo: https://github.com/liblaf/pre-commit-hooks + rev: v0.1.0 hooks: - id: cargo-check - id: cargo-clippy