[Backport release-1.1] Feat: store workflow step def properties in cm (#2614)

* Fix: fix notification def

(cherry picked from commit f35a213048)

* Feat: store workflow step def properties in cm

(cherry picked from commit 7f3902536c)

* fix ci

(cherry picked from commit a252749f77)

* fix data race

(cherry picked from commit 0b55ce8386)

Co-authored-by: FogDong <dongtianxin.tx@alibaba-inc.com>
This commit is contained in:
github-actions[bot]
2021-11-03 19:10:18 +08:00
committed by GitHub
parent 162534b611
commit 855cbfe3ec
19 changed files with 175 additions and 41 deletions

View File

@@ -27,8 +27,7 @@ import (
var (
//go:embed pkgs op.cue
fs embed.FS
pkgContent string
fs embed.FS
)
// GetPackages Get Stdlib packages
@@ -44,7 +43,7 @@ func GetPackages(tagTempl string) (map[string]string, error) {
return nil, err
}
pkgContent = string(opBytes) + "\n"
pkgContent := string(opBytes) + "\n"
for _, file := range files {
body, err := fs.ReadFile("pkgs/" + file.Name())
if err != nil {

View File

@@ -18,17 +18,17 @@
url?: string
value?: string
style?: string
text?: #text
text?: #textType
confirm?: {
title: #text
text: #text
confirm: #text
deny: #text
title: #textType
text: #textType
confirm: #textType
deny: #textType
style?: string
}
options?: [...#option]
initial_options?: [...#option]
placeholder?: #text
placeholder?: #textType
initial_date?: string
image_url?: string
alt_text?: string
@@ -45,7 +45,7 @@
}]
}
#text: {
#textType: {
type: string
text: string
emoji?: bool
@@ -53,8 +53,8 @@
}
#option: {
text: text
text: #textType
value: string
description?: text
description?: #textType
url?: string
}