-
-
Notifications
You must be signed in to change notification settings - Fork 5
74 lines (74 loc) · 1.92 KB
/
update-sources.yaml
File metadata and controls
74 lines (74 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"concurrency": {
"cancel-in-progress": true,
"group": "update"
},
"jobs": {
"update": {
"environment": {
"name": "update-sources",
"url": "${{steps.update.outputs.pull-request-url}}"
},
"runs-on": "ubuntu-latest",
"steps": [
{
"uses": "actions/checkout@v4"
},
{
"uses": "wimpysworld/nothing-but-nix@main",
"with": {
"hatchet-protocol": "holster"
}
},
{
"uses": "DeterminateSystems/nix-installer-action@main"
},
{
"uses": "DeterminateSystems/magic-nix-cache-action@main"
},
{
"run": "nix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c pins update"
},
{
"run": "rm -rf ./dev/community/discovered/"
},
{
"run": "nix develop --accept-flake-config --override-input dendrix . --print-build-logs ./dev -c discover"
},
{
"run": "nix flake --accept-flake-config check path:dev --override-input dendrix . --print-build-logs"
},
{
"id": "update",
"uses": "peter-evans/create-pull-request@v7",
"with": {
"assignees": "vic,copilot",
"author": "Victor Borja <vborja@apache.org>",
"body": "Please review.",
"branch": "update-sources",
"branch-suffix": "timestamp",
"commit-message": "Update sources",
"reviewers": "vic,copilot",
"title": "Update community sources."
}
}
]
}
},
"name": "update sources",
"on": {
"repository_dispatch": {},
"schedule": [
{
"cron": "0 5 * * *"
}
],
"workflow_call": {},
"workflow_dispatch": {}
},
"permissions": {
"contents": "write",
"id-token": "write",
"pull-requests": "write"
}
}