Skip to content

Commit 0e6246d

Browse files
committed
regen script
1 parent 484a7bf commit 0e6246d

File tree

2 files changed

+11
-20
lines changed

2 files changed

+11
-20
lines changed

.github/workflows/update-sources.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,7 @@
2727
"uses": "DeterminateSystems/magic-nix-cache-action@main"
2828
},
2929
{
30-
"run": "nix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c pins update"
31-
},
32-
{
33-
"run": "rm -rf ./dev/community/discovered/"
34-
},
35-
{
36-
"run": "nix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c discover"
37-
},
38-
{
39-
"run": "nix flake --accept-flake-config check path:dev --override-input dendrix . --print-build-logs"
30+
"run": "set -e\nnix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c pins update\nrm -rf ./dev/community/discovered/\necho '{}' > ./dev/community/discovered/trees.json\necho '{ dendrix.discover-community-aspects = true; }' > ./dev/modules/enable-discovery.nix\nnix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c files\nrm ./dev/modules/enable-discovery.nix\nnix flake --accept-flake-config check path:dev --override-input dendrix . --print-build-logs\n"
4031
},
4132
{
4233
"id": "update",

dev/modules/gh-update-sources.nix

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ in
3636
runs-on = "ubuntu-latest";
3737
steps = (import ./_gh-provision-nix.nix) ++ [
3838
{
39-
run = "nix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c pins update";
40-
}
41-
{
42-
run = "rm -rf ./dev/community/discovered/";
43-
}
44-
{
45-
run = "nix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c discover";
46-
}
47-
{
48-
run = "nix flake --accept-flake-config check path:dev --override-input dendrix . --print-build-logs";
39+
run = ''
40+
set -e
41+
nix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c pins update
42+
rm -rf ./dev/community/discovered/
43+
echo '{}' > ./dev/community/discovered/trees.json
44+
echo '{ dendrix.discover-community-aspects = true; }' > ./dev/modules/enable-discovery.nix
45+
nix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c files
46+
rm ./dev/modules/enable-discovery.nix
47+
nix flake --accept-flake-config check path:dev --override-input dendrix . --print-build-logs
48+
'';
4949
}
5050
{
5151
id = "update";

0 commit comments

Comments
 (0)