Skip to content

Commit

Permalink
patch(v0.20.2/secrets): support schedule event for secrets (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper authored Sep 6, 2023
1 parent 0b58688 commit bb8b3ef
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions action/secret/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ func (c *Config) Validate() error {
fallthrough
case constants.EventPush:
fallthrough
case constants.EventSchedule:
fallthrough
case constants.EventTag:
continue
default:
Expand Down
14 changes: 14 additions & 0 deletions action/secret/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@ func TestSecret_Config_Validate(t *testing.T) {
Output: "",
},
},
{
failure: false,
config: &Config{
Action: "add",
Engine: "native",
Type: "repo",
Org: "github",
Repo: "octocat",
Name: "foo",
Value: "bar",
Events: []string{"comment", "push", "pull_request", "tag", "deployment", "schedule"},
Output: "",
},
},
{
failure: true,
config: &Config{
Expand Down

0 comments on commit bb8b3ef

Please sign in to comment.