diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index af89656..116a2d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,3 @@ -name: main on: pull_request: push: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7ff875f..40ab624 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.2.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer diff --git a/README.md b/README.md index dfdd651..2a30ad0 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,13 @@ -**DEPRECATED** this action is in maintenance-only mode and will not be -accepting new features. +this action is in maintenance-only mode and will not be accepting new features. -Please switch to using [pre-commit.ci] which is faster and has more features. +generally you want to use [pre-commit.ci] which is faster and has more features. [pre-commit.ci]: https://pre-commit.ci ___ [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/pre-commit/action/main.svg)](https://results.pre-commit.ci/latest/github/pre-commit/action/main) -[![Build Status](https://github.com/pre-commit/action/workflows/main/badge.svg)](https://github.com/pre-commit/action/actions) +[![Build Status](https://github.com/pre-commit/action/actions/workflows/main.yml/badge.svg)](https://github.com/pre-commit/action/actions) pre-commit/action ================= @@ -34,7 +33,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 - - uses: pre-commit/action@v3.0.0 + - uses: pre-commit/action@v3.0.1 ``` This does a few things: @@ -52,7 +51,7 @@ Here's a sample step configuration that only runs the `flake8` hook against all the files (use the template above except for the `pre-commit` action): ```yaml - - uses: pre-commit/action@v3.0.0 + - uses: pre-commit/action@v3.0.1 with: extra_args: flake8 --all-files ``` diff --git a/action.yml b/action.yml index a25b9da..18ded0d 100644 --- a/action.yml +++ b/action.yml @@ -12,7 +12,7 @@ runs: shell: bash - run: python -m pip freeze --local shell: bash - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: ~/.cache/pre-commit key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}