From d54aa11cc3ae20ae3ddbbfaf23c6fdbde9bed38e Mon Sep 17 00:00:00 2001 From: dundargoc Date: Tue, 20 Feb 2024 13:15:58 +0100 Subject: [PATCH] ci: relax caching requirements Specifically, ignore changes in workflow files. While it is technically more correct to include them (as they may affect the caching), it is unlikely. --- .github/actions/cache/action.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/actions/cache/action.yml b/.github/actions/cache/action.yml index 48d50747..cc816682 100644 --- a/.github/actions/cache/action.yml +++ b/.github/actions/cache/action.yml @@ -14,11 +14,10 @@ runs: test/fixtures/grammars target/release/tree-sitter-*.wasm key: fixtures-${{ join(matrix.*, '_') }}-${{ hashFiles( - '.github/workflows/builds.yml', - '.github/workflows/sanitize.yml', 'cli/src/generate/**', 'script/generate-fixtures*', - 'test/fixtures/grammars/*/**/src/*.c') }} + 'test/fixtures/grammars/*/**/src/*.c', + '.github/actions/cache/action.yml') }} - run: echo "cache-hit=${{ steps.cache_fixtures.outputs.cache-hit }}" >> $GITHUB_OUTPUT shell: bash