Skip to content

Commit

Permalink
Exclude .git in source-hash
Browse files Browse the repository at this point in the history
We suspect including this is causing some churn in the hash when sources
haven't, in fact, changed.
  • Loading branch information
pbrisbin committed Jan 31, 2024
1 parent e202c16 commit f286cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f286cb8

Please sign in to comment.