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

View file

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

View file

@ -165,7 +165,6 @@ func ReadMarkdownFromZip(zipData []byte, fileName string) (string, error) {
// } // }
func CreateDispatch(workflowFileName string, ref string, inputs map[string]interface{}) { 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} event := github.CreateWorkflowDispatchEventRequest{Ref: ref, Inputs: inputs}
_, err := client.Actions.CreateWorkflowDispatchEventByFileName( _, err := client.Actions.CreateWorkflowDispatchEventByFileName(
context.Background(), context.Background(),