mirror of
https://gitea.com/actions/dorny-paths-filter.git
synced 2025-12-31 19:38:20 +00:00
Export changed files grouped by change status (#23)
This commit is contained in:
@@ -35,6 +35,10 @@ export default class Filter {
|
||||
|
||||
// Load rules from YAML string
|
||||
load(yaml: string): void {
|
||||
if (!yaml) {
|
||||
return
|
||||
}
|
||||
|
||||
const doc = jsyaml.safeLoad(yaml) as FilterYaml
|
||||
if (typeof doc !== 'object') {
|
||||
this.throwInvalidFormatError('Root element is not an object')
|
||||
|
||||
Reference in New Issue
Block a user