mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-08 08:10:30 +00:00
fix handle missing yaml.ScalarNode (#129)
This bug was reported on https://github.com/go-gitea/gitea/issues/33657 Rewrite of (see below) was missing in this commit https://gitea.com/gsvd/act/commit/6cdf1e5788dbfa8fe9787a07178c28b64837a61f ```go case string: acts[act] = []string{b} ``` Reviewed-on: https://gitea.com/gitea/act/pulls/129 Reviewed-by: Lunny Xiao <[email protected]> Co-authored-by: Guillaume S. <[email protected]> Co-committed-by: Guillaume S. <[email protected]>
This commit is contained in:
1 parent
ec091ad269
commit
5da4954b65
2 files changed
+20
No files matched your search
@@ -58,6 +58,19 @@ func TestParseRawOn(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
input: "on:\n push:\n branches: main",
|
||||
result: []*Event{
|
||||
{
|
||||
Name: "push",
|
||||
acts: map[string][]string{
|
||||
"branches": {
|
||||
"main",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
input: "on:\n branch_protection_rule:\n types: [created, deleted]",
|
||||
result: []*Event{
|
||||
|
||||
Reference in new issue
Block a user