Skip to content

Commit

Permalink
👷 Use git-auto-commit-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Dec 30, 2024
1 parent 247fad5 commit a5b1a59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 30 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,16 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
# https://github.com/orgs/community/discussions/25702
persist-credentials: false
token: ${{ secrets.GH_TOKEN }}
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Install dependency
- name: Check update
run: |
nix run 'nixpkgs#nvfetcher'
- name: Update version
run: |
scripts/git-commit.sh
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
git diff --quiet && exit; true
git add _sources/generated.nix
- uses: stefanzweifel/git-auto-commit-action@v5
13 changes: 1 addition & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,12 @@ repos:
rev: 3.0.0
hooks:
- id: check-mailmap
- id: shellcheck
exclude_types:
- zsh
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.19
rev: 0.7.21
hooks:
- id: mdformat
additional_dependencies:
Expand All @@ -73,15 +70,7 @@ repos:
- id: markdownlint-cli2
additional_dependencies:
- markdown-it-texmath
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.10.0-2
hooks:
- id: shfmt
- repo: https://github.com/NixOS/nixfmt
rev: cb92834560306868e4020dd643f09482587c6e7a
hooks:
- id: nixfmt

ci:
skip:
- shellcheck
10 changes: 0 additions & 10 deletions scripts/git-commit.sh

This file was deleted.

0 comments on commit a5b1a59

Please sign in to comment.