Skip to content

Commit

Permalink
Only ignore main and master, not all branches when pinning actions
Browse files Browse the repository at this point in the history
We used to ignore all actions that were referenced with a branch, but
this is not really intuitive. Let's only ignore main and master.

Relates: stacklok#175
  • Loading branch information
jhrozek committed Jul 17, 2024
1 parent 0c74f2d commit 2ae4ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/utils/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func DefaultConfig() *Config {
return &Config{
GHActions: GHActions{
Filter: Filter{
ExcludeBranches: []string{"*"},
ExcludeBranches: []string{"main", "master"},
},
},
Images: Images{
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ images:
GHActions: GHActions{
Filter: Filter{
Exclude: []string{"pattern1", "pattern2"},
ExcludeBranches: []string{"*"},
ExcludeBranches: []string{"main", "master"},
},
},
Images: Images{
Expand Down

0 comments on commit 2ae4ea7

Please sign in to comment.