diff --git a/.github/workflows/template.yaml b/.github/workflows/template.yaml new file mode 100644 index 0000000..128a801 --- /dev/null +++ b/.github/workflows/template.yaml @@ -0,0 +1,27 @@ +name: Template + +on: + schedule: + - cron: 0 3 * * 0 + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }} + +jobs: + template: + name: Template + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Sync Repository + uses: liblaf/template@main + - name: Git Commit + run: |- + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add --all + if git commit --message="ci: sync with template repository"; then + git push + fi diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b38b0f9..1cbeb66 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,8 @@ ci(pre-commit): auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci - autoupdate_commit_msg: "ci(pre-commit): pre-commit autoupdate" + autoupdate_commit_msg: |- + ci(pre-commit): pre-commit autoupdate skip: - cargo-check - clippy @@ -43,7 +44,7 @@ - c - c++ - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.3 + rev: v3.1.0 hooks: - id: prettier stages: @@ -74,7 +75,7 @@ - id: name-tests-test - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.10.1 + rev: 23.11.0 hooks: - id: black - id: black-jupyter @@ -109,9 +110,9 @@ - id: poetry-lock files: pyproject.toml - repo: https://github.com/scop/pre-commit-shfmt - rev: v3.7.0-1 + rev: v3.7.0-2 hooks: - - id: shfmt + - id: shfmt-src files: (\.sh|\.zsh|\.zsh-theme|envrc|zshrc)(\.tmpl)?$ types: - text @@ -120,7 +121,6 @@ - --simplify - --indent=2 - --case-indent - - --space-redirects - repo: https://github.com/sirosen/texthooks rev: 0.6.2 hooks: