Skip to content

Bump actions/cache from 3 to 4 #69

Bump actions/cache from 3 to 4

Bump actions/cache from 3 to 4 #69

Workflow file for this run

name: pre-commit
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: set PY
# `python --version --version` (twice) is deliberate, as it gets even more info
# `Python 3.10.10` vs `Python 3.10.10 (main, Feb 9 2023, 02:08:14) [GCC 12.2.1 20220924]`
run: echo "PY=$(python --version --version | sha256sum | cut -d' ' -f1) >> $GITHUB_ENV"
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/action@v3.0.0
env:
SKIP: yamlfmt