File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 } ;
2020
2121 git-hooks . hooks = {
22- prettier = {
23- enable = true ;
24- files = "(src/.*\. ts|.*\. md|.*\. yml)$" ;
25- } ;
26- nixfmt-rfc-style . enable = true ;
2722 build-dist = {
2823 enable = true ;
2924 files = "src/.*$" ;
3025 pass_filenames = false ;
3126 entry = "devenv shell -- pnpm build" ;
3227 } ;
28+ nixfmt-rfc-style . enable = true ;
29+ prettier = {
30+ enable = true ;
31+ files = "(src/.*\. ts|.*\. md|.*\. yml)$" ;
32+ } ;
33+ shellcheck = {
34+ enable = true ;
35+ excludes = [ "\\ .envrc" ] ;
36+ } ;
3337 } ;
3438}
Original file line number Diff line number Diff line change @@ -8,15 +8,13 @@ filterPaths() {
88 local paths=$2
99
1010 for path in $paths ; do
11- echo $path | grep -vEe $regex
11+ echo " $path " | grep -vEe " $regex "
1212 done | xargs
1313}
1414
1515pathsToPush=" "
16- preBuildPaths=$( sort " $preBuildPathsFile " )
17- if [ $? -eq 0 ]; then
18- postBuildPaths=$( " $( dirname " $0 " ) " /list-nix-store.sh | sort)
19- if [ $? -eq 0 ]; then
16+ if preBuildPaths=$( sort " $preBuildPathsFile " ) ; then
17+ if postBuildPaths=$( " $( dirname " $0 " ) " /list-nix-store.sh | sort) ; then
2018 pathsToPush=$( comm -13 <( echo " $preBuildPaths " ) <( echo " $postBuildPaths " ) )
2119 else
2220 echo " ::error::Failed to list post-build store paths."
2624fi
2725
2826if [[ -n $pushFilter ]]; then
29- pathsToPush=$( filterPaths $pushFilter " $pathsToPush " )
27+ pathsToPush=$( filterPaths " $pushFilter " " $pathsToPush " )
3028fi
3129
32- echo " $pathsToPush " | " $cachix " push $cachixArgs " $cache "
30+ echo " $pathsToPush " | " $cachix " push " $cachixArgs " " $cache "
You can’t perform that action at this time.
0 commit comments