Skip to content

Commit 943f877

Browse files
committed
dont use nix develop on gh action
1 parent c75be20 commit 943f877

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/update-sources.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@
3131
}
3232
},
3333
{
34-
"run": "set -e\nnix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c pins update\nrm -rf ./dev/community/discovered/*-*\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"
34+
"run": "set -e\n(cd dev; nix run nixpkgs#npins -- update)\nrm -rf ./dev/community/discovered/*-*\necho '{ dendrix.discover-community-aspects = true; }' > ./dev/modules/enable-discovery.nix\nnix run --accept-flake-config --override-input dendrix . --print-build-logs ./dev#genfiles\nrm ./dev/modules/enable-discovery.nix\nnix run --accept-flake-config --override-input dendrix . --print-build-logs ./dev#fmt\nnix flake --accept-flake-config check path:dev --override-input dendrix . --print-build-logs\n"
3535
},
3636
{
3737
"id": "update",
3838
"uses": "peter-evans/create-pull-request@v7",
3939
"with": {
40-
"assignees": "vic,copilot",
40+
"assignees": "vic",
4141
"author": "Victor Borja <vborja@apache.org>",
4242
"body": "Please review.",
4343
"branch": "update-sources",
4444
"branch-suffix": "timestamp",
4545
"commit-message": "Update sources",
46-
"reviewers": "vic,copilot",
46+
"reviewers": "vic,copilot-pull-request-reviewer",
4747
"title": "Update community sources."
4848
}
4949
}

dev/modules/gh-update-sources.nix

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ in
3838
{
3939
run = ''
4040
set -e
41-
nix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c pins update
41+
(cd dev; nix run nixpkgs#npins -- update)
4242
rm -rf ./dev/community/discovered/*-*
4343
echo '{ dendrix.discover-community-aspects = true; }' > ./dev/modules/enable-discovery.nix
44-
nix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c files
44+
nix run --accept-flake-config --override-input dendrix . --print-build-logs ./dev#genfiles
4545
rm ./dev/modules/enable-discovery.nix
46+
nix run --accept-flake-config --override-input dendrix . --print-build-logs ./dev#fmt
4647
nix flake --accept-flake-config check path:dev --override-input dendrix . --print-build-logs
4748
'';
4849
}
@@ -56,8 +57,8 @@ in
5657
branch-suffix = "timestamp";
5758
title = "Update community sources.";
5859
body = "Please review.";
59-
assignees = "vic,copilot";
60-
reviewers = "vic,copilot";
60+
assignees = "vic";
61+
reviewers = "vic,copilot-pull-request-reviewer";
6162
};
6263
}
6364
];

0 commit comments

Comments
 (0)