File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 44 pull_request :
55 branches :
66 - main
7+ - develop
78
89jobs :
910 build :
Original file line number Diff line number Diff line change @@ -248,6 +248,12 @@ func readRuleValues(rawJob *JobAttributes) map[string]interface{} {
248248
249249func readActionValues (rawJob * JobAttributes ) map [string ]interface {} {
250250 switch rawJob .ActionType {
251+ case "create_image" :
252+ switch rawJob .ActionValue ["generation" ].(type ) {
253+ case string :
254+ generation , _ := strconv .Atoi (rawJob .ActionValue ["generation" ].(string ))
255+ rawJob .ActionValue ["generation" ] = generation
256+ }
251257 case "authorize_security_group_ingress" , "revoke_security_group_ingress" :
252258 toPort := rawJob .ActionValue ["to_port" ].(float64 )
253259 rawJob .ActionValue ["to_port" ] = strconv .Itoa (int (toPort ))
You can’t perform that action at this time.
0 commit comments