Connect applications to schemes, filetypes, and more on macOS (more to come)
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

created a cue "tool" to generate the yaml files

+33
+33
.config/ci/release/generate_tool.cue
··· 1 + package release 2 + 3 + import ( 4 + "path" 5 + "encoding/yaml" 6 + "tool/file" 7 + ) 8 + 9 + // Generate GitHub Actions workflow files 10 + command: generate: { 11 + for workflowName, workflowConfig in workflows { 12 + let workflowFile = workflowName + ".yml" 13 + let workflowDir = path.FromSlash(".github/workflows", path.Unix) 14 + let workflowPath = path.Join([workflowDir, workflowFile]) 15 + let toolFile = ".config/ci/tools.cue" 16 + let donotedit = "Code generated by \(toolFile); DO NOT EDIT." 17 + 18 + "remove-\(workflowName)": file.RemoveAll & { 19 + path: workflowPath 20 + } 21 + 22 + "write-\(workflowName)": file.Create & { 23 + $after: "remove-\(workflowName)" 24 + filename: workflowPath 25 + contents: "# \(donotedit)\n\n\(yaml.Marshal(workflowConfig))" 26 + } 27 + } 28 + } 29 + 30 + // Validate workflow files without generating 31 + command: validate: { 32 + result: workflows 33 + }