Commit 08dcf70 1 parent 991af99 commit 08dcf70 Copy full SHA for 08dcf70
File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,21 @@ filterPaths() {
12
12
done | xargs
13
13
}
14
14
15
- pathsToPush=$( comm -13 <( sort /tmp/store-path-pre-build) <( " $( dirname " $0 " ) " /list-nix-store.sh) )
15
+ pathsToPush=" "
16
+ preBuildPaths=$( sort /tmp/store-path-pre-build)
17
+ if [ $? -eq 0 ]; then
18
+ postBuildPaths=$( " $( dirname " $0 " ) " /list-nix-store.sh | sort)
19
+ if [ $? -eq 0 ]; then
20
+ pathsToPush=$( comm -13 <( echo " $preBuildPaths " ) <( echo " $postBuildPaths " ) )
21
+ else
22
+ echo " ::error::Failed to list post-build store paths."
23
+ fi
24
+ else
25
+ echo " ::error::Failed to find pre-build store paths."
26
+ fi
16
27
17
28
if [[ -n $pushFilter ]]; then
18
- pathsToPush=$( filterPaths $pushFilter " $pathsToPush " )
29
+ pathsToPush=$( filterPaths $pushFilter " $pathsToPush " )
19
30
fi
20
31
21
32
echo " $pathsToPush " | " $cachix " push $cachixArgs " $cache "
You can’t perform that action at this time.
0 commit comments