Skip to content

Commit

Permalink
Add scheduled step to delete pre-commit cache
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Sep 8, 2023
1 parent b11e708 commit 89b0508
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4

- name: Force recreation of pre-commit virtual environment for mypy
if: github.event_name == 'schedule' # Comment this line to run on a PR
run: gh cache delete $(gh cache list -L 999 | cut -f2 | grep pre-commit)
env: { GH_TOKEN: "${{ github.token }}" }

- uses: pre-commit/[email protected]

0 comments on commit 89b0508

Please sign in to comment.