Compare commits

..

No commits in common. "6c6eb759d3089382f1133cc486398ef65c846896" and "4c46c2ec9d82ebbd798b2d94fa30a3992d7d00a4" have entirely different histories.

3 changed files with 18 additions and 20 deletions

View file

@ -499,11 +499,11 @@
"lix": {
"flake": false,
"locked": {
"lastModified": 1721690099,
"narHash": "sha256-1wsdWsGGssAgbCe3JQXbbwjhYO3q1eGtydGXJb3aOV0=",
"rev": "73c013a5df09a9edf7a6d2fa0be8349d89f856cd",
"lastModified": 1721559271,
"narHash": "sha256-eUvPvpDLRl6553EsoUmzgNYES8X4CYYoWIJ64hhvfGg=",
"rev": "2d4aca25468184fdd2f6be034ab9aa9c28d2839e",
"type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/73c013a5df09a9edf7a6d2fa0be8349d89f856cd.tar.gz"
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/2d4aca25468184fdd2f6be034ab9aa9c28d2839e.tar.gz"
},
"original": {
"type": "tarball",
@ -680,11 +680,11 @@
"nixpkgs": "nixpkgs_7"
},
"locked": {
"lastModified": 1721691437,
"narHash": "sha256-z3h4XqAdE1sqCdZxI9+gxLDEEbgGOVHIWZRMIjQheDo=",
"lastModified": 1721566265,
"narHash": "sha256-o1thi0iay9AfkqkopNsPfc70bfHD+NcsKOs3IYwRk/A=",
"owner": "nix-community",
"repo": "nixpkgs-wayland",
"rev": "79e1f9e956c60af6520c5f9d9e451e555a82da6f",
"rev": "6d34f9c34bdab180fd15185c87a44b3bd11cb4c0",
"type": "github"
},
"original": {
@ -743,11 +743,11 @@
},
"nixpkgs_5": {
"locked": {
"lastModified": 1721622093,
"narHash": "sha256-iQ+quy3A1EKeFyLyAtjhgSvZHH7r+xybXZkxMhasN4I=",
"lastModified": 1721559948,
"narHash": "sha256-cFgdjyK/VBM3hB1RfFHXcI/VOCBVAv813s1upHKX7bI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "453402b94f39f968a7c27df28e060f69e4a50c3b",
"rev": "c19d62ad2265b16e2199c5feb4650fe459ca1c46",
"type": "github"
},
"original": {
@ -775,11 +775,11 @@
},
"nixpkgs_7": {
"locked": {
"lastModified": 1721562059,
"narHash": "sha256-Tybxt65eyOARf285hMHIJ2uul8SULjFZbT9ZaEeUnP8=",
"lastModified": 1721379653,
"narHash": "sha256-8MUgifkJ7lkZs3u99UDZMB4kbOxvMEXQZ31FO3SopZ0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "68c9ed8bbed9dfce253cc91560bf9043297ef2fe",
"rev": "1d9c2c9b3e71b9ee663d11c5d298727dace8d374",
"type": "github"
},
"original": {
@ -1175,11 +1175,11 @@
"zig-overlay": "zig-overlay"
},
"locked": {
"lastModified": 1721667510,
"narHash": "sha256-d1mN/mYLscdJOwg3+y0ZhrTYIEGdsnTdhsmu/51X2n8=",
"lastModified": 1721500946,
"narHash": "sha256-nQ4XXLwYQlRhGFn2a5zjr53y+ZWNqJmIPF0JmLUg22E=",
"owner": "zigtools",
"repo": "zls",
"rev": "3b9216e4444395ab1ee35911e9927571f8291fad",
"rev": "aa9c9126e732aafed144ceea21c5868d33b2954d",
"type": "github"
},
"original": {

View file

@ -13,14 +13,13 @@ import (
var ciCmd = &cobra.Command{
Use: "ci",
Short: "offload build to GHA",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
inputs := make(map[string]interface{})
if includeLock {
log.Debug("including lock file in inputs")
inputs["lockFile"] = readLockFile()
}
github.CreateDispatch(args[0], ref, inputs)
github.CreateDispatch("build.yml", ref, inputs)
},
}

View file

@ -61,7 +61,7 @@ func GetArtifacts(runID int64) (*github.ArtifactList, *github.Response) {
}
func GetUpdateSummaryArtifact(runID int64, host string) *github.Artifact {
artifactName := fmt.Sprintf("%s-summary", host)
artifactName := fmt.Sprintf("%s-summary", host)
artifactList, _ := GetArtifacts(runID)
for _, artifact := range artifactList.Artifacts {
if artifact.GetName() == artifactName {
@ -165,7 +165,6 @@ func ReadMarkdownFromZip(zipData []byte, fileName string) (string, error) {
// }
func CreateDispatch(workflowFileName string, ref string, inputs map[string]interface{}) {
log.Infof("creating dispatch event for %s", workflowFileName)
event := github.CreateWorkflowDispatchEventRequest{Ref: ref, Inputs: inputs}
_, err := client.Actions.CreateWorkflowDispatchEventByFileName(
context.Background(),