write info to step summary

This commit is contained in:
Daylin Morgan 2024-08-07 13:01:52 -05:00
parent 0beb4d04bb
commit 617ae20642
Signed by: daylin
GPG key ID: 950D13E9719334AD
2 changed files with 6 additions and 1 deletions

View file

@ -10,7 +10,7 @@ var dryCmd = &cobra.Command{
Use: "dry", Use: "dry",
Short: "poor man's nix flake check", Short: "poor man's nix flake check",
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
oizys.Dry( minimal, args...) oizys.Dry(minimal, args...)
}, },
} }

View file

@ -256,6 +256,11 @@ func NixBuild(minimal bool, rest ...string) {
log.Info("nothing to build. exiting...") log.Info("nothing to build. exiting...")
os.Exit(0) os.Exit(0)
} }
if o.inCI {
o.writeToGithubStepSummary("# Building Derivations:\n")
// TODO: write as a markdown table with hash + name (without .drv)
o.writeToGithubStepSummary(strings.Join(drvs, "\n"))
}
cmd.Args = append(cmd.Args, append(drvs, "--no-link")...) cmd.Args = append(cmd.Args, append(drvs, "--no-link")...)
} }
if !o.inCI { if !o.inCI {