Skip to content

Commit 1105149

Browse files
committed
remove files before discovering
1 parent 754e5c5 commit 1105149

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/update-sources.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
{
2727
"uses": "DeterminateSystems/magic-nix-cache-action@main"
2828
},
29+
{
30+
"run": "rm -rf ./dev/community/discovered/"
31+
},
2932
{
3033
"run": "nix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c pins update"
3134
},
@@ -55,9 +58,11 @@
5558
"name": "update sources",
5659
"on": {
5760
"repository_dispatch": {},
58-
"schedule": {
59-
"cron": "0 0 * * *"
60-
},
61+
"schedule": [
62+
{
63+
"cron": "0 5 * * *"
64+
}
65+
],
6166
"workflow_call": {},
6267
"workflow_dispatch": {}
6368
},

dev/modules/gh-update-sources.nix

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ in
1515
workflow_call = { };
1616
workflow_dispatch = { };
1717
repository_dispatch = { };
18-
schedule = [{
19-
cron = "0 5 * * *";
20-
}];
18+
schedule = [
19+
{
20+
cron = "0 5 * * *";
21+
}
22+
];
2123
};
2224
permissions = {
2325
contents = "write";
@@ -33,6 +35,9 @@ in
3335
environment.url = "\${{steps.update.outputs.pull-request-url}}";
3436
runs-on = "ubuntu-latest";
3537
steps = (import ./_gh-provision-nix.nix) ++ [
38+
{
39+
run = "rm -rf ./dev/community/discovered/";
40+
}
3641
{
3742
run = "nix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c pins update";
3843
}

0 commit comments

Comments
 (0)