From 967e570e67ae704eec4222407f2535997afc05d7 Mon Sep 17 00:00:00 2001 From: Matthias Schaub Date: Mon, 16 Oct 2023 10:05:40 +0200 Subject: [PATCH] ci/wip: add pre-commit to github actions --- .github/workflows/js-css.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/js-css.yml b/.github/workflows/js-css.yml index 932cb90d..0990a099 100644 --- a/.github/workflows/js-css.yml +++ b/.github/workflows/js-css.yml @@ -17,3 +17,9 @@ jobs: run: npx eslint . - name: Run Stylelint run: npx stylelint "**/*.css" + - name: set PY + run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV + - uses: actions/cache@v3 + with: + path: ~/.cache/pre-commit + key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}