Skip to content

Commit 8661270

Browse files
committed
Fix assign owners workflow
1 parent 8306a07 commit 8661270

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/assign-issue-owners.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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;
@@ -42,7 +39,7 @@ jobs:
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');

0 commit comments

Comments
 (0)