Skip to content

Commit f8bf0d2

Browse files
committed
support PRs from forks
update tullia
1 parent e88fda6 commit f8bf0d2

File tree

2 files changed

+63
-48
lines changed

2 files changed

+63
-48
lines changed

flake.lock

Lines changed: 58 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nix/tullia.nix

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,23 @@ in rec {
2323
preset = {
2424
nix.enable = true;
2525

26-
github.status = {
26+
github.ci = {
2727
enable = config.actionRun.facts != {};
2828
inherit repository;
29+
remote = config.preset.github.lib.readRepository ciInputName null;
2930
revision = config.preset.github.lib.readRevision ciInputName null;
3031
};
3132
};
3233

33-
command.text = let
34-
flakeUrl = ''github:${repository}/"$(${lib.escapeShellArg config.preset.github.status.revision})"'';
35-
in config.preset.github.status.lib.reportBulk {
34+
command.text = config.preset.github.status.lib.reportBulk {
3635
bulk.text = ''
3736
echo '["x86_64-linux", "x86_64-darwin"]' | nix-systems -i \
3837
| jq 'with_entries(.key |= {"x86_64-linux": "linux", "x86_64-darwin": "macos"}[.])'
3938
'';
40-
each.text = ''nix build -L ${flakeUrl}#${lib.escapeShellArg top}."$1".required'';
39+
each.text = ''nix build -L .#${lib.escapeShellArg top}."$1".required'';
4140
skippedDescription = lib.escapeShellArg "No nix builder available for this platform";
4241
} + "\n" + ''
43-
nix build -L ${flakeUrl}#${lib.escapeShellArg top}.cardano-deployment
42+
nix build -L .#${lib.escapeShellArg top}.cardano-deployment
4443
'';
4544

4645
env.NIX_CONFIG = ''

0 commit comments

Comments
 (0)