File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,15 @@ jobs:
1919 - name : Checkout repository
2020 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121
22- - name : Install js- yaml
23- run : npm install js- yaml@4.1 .0
22+ - name : Install yaml
23+ run : npm install yaml@2.8 .0
2424
2525 - name : Parse component label and assign owners
2626 uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2727 with :
2828 script : |
2929 const fs = require('fs');
30- const yaml = require('js- yaml');
30+ const { parse } = require('yaml');
3131
3232 // Extract component name from label
3333 const labelName = context.payload.label.name;
4242
4343 // Read and parse component_owners.yml
4444 const yamlContent = fs.readFileSync('.github/component_owners.yml', 'utf8');
45- const data = yaml.load (yamlContent);
45+ const data = parse (yamlContent);
4646
4747 if (!data || !data.components) {
4848 core.setFailed('Invalid component_owners.yml structure');
You can’t perform that action at this time.
0 commit comments