From f286cb84b63e4d4464290e05e82173c931fb35a7 Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Wed, 31 Jan 2024 10:51:56 -0500 Subject: [PATCH] Exclude .git in source-hash We suspect including this is causing some churn in the hash when sources haven't, in fact, changed. --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0c4da31..27953d7 100644 --- a/action.yml +++ b/action.yml @@ -230,7 +230,7 @@ runs: # silently producing an empty hash. echo "snapshot-hash=${{ hashFiles(format('{0}/{1}', inputs.working-directory, inputs.stack-yaml)) }}" >>"$GITHUB_OUTPUT" echo "package-hash=${{ hashFiles('**/package.yaml', '**/*.cabal') }}" >>"$GITHUB_OUTPUT" - echo "sources-hash=${{ hashFiles('**', '!**/.stack-work') }}" >>"$GITHUB_OUTPUT" + echo "sources-hash=${{ hashFiles('**', '!**/.stack-work', '!.git') }}" >>"$GITHUB_OUTPUT" - id: stack-query name: Set stack-query outputs