File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,12 @@ jobs:
1919 - name : Checkout repository
2020 uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
2121
22- - name : Install yaml dependency used below
23- run : npm ci --prefix .github/scripts
24-
2522 - name : Parse component label and assign owners
2623 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2724 with :
2825 script : |
2926 const fs = require('fs');
30- const { parse } = require('yaml');
27+ const yaml = require('js- yaml');
3128
3229 // Extract component name from label
3330 const labelName = context.payload.label.name;
4239
4340 // Read and parse component_owners.yml
4441 const yamlContent = fs.readFileSync('.github/component_owners.yml', 'utf8');
45- const data = parse (yamlContent);
42+ const data = yaml.load (yamlContent);
4643
4744 if (!data || !data.components) {
4845 core.setFailed('Invalid component_owners.yml structure');
You can’t perform that action at this time.
0 commit comments