Skip to content

Commit 7f8f353

Browse files
authored
Refactor issue labeler workflow
1 parent 0174308 commit 7f8f353

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

.github/workflows/issue_labeler.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,36 @@ permissions:
88

99
jobs:
1010
label-component:
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-latest
1212

1313
permissions:
1414
issues: write
1515

16-
strategy:
17-
matrix:
18-
template: [ FormBugReportEN.yml, FormBugReportPT.yml ]
19-
2016
steps:
2117
- uses: actions/checkout@v4
2218

23-
- name: Parse issue form
19+
- name: Parse issue form EN
20+
uses: stefanbuck/github-issue-parser@v3
21+
id: issue-parser-en
22+
with:
23+
template-path: .github/ISSUE_TEMPLATE/FormBugReportEN.yml
24+
25+
- name: Parse issue form PT
2426
uses: stefanbuck/github-issue-parser@v3
25-
id: issue-parser
27+
id: issue-parser-pt
2628
with:
27-
template-path: .github/ISSUE_TEMPLATE/${{ matrix.template }}
29+
template-path: .github/ISSUE_TEMPLATE/FormBugReportPT.yml
30+
31+
- name: Set labels of form-report-en
32+
uses: redhat-plumbers-in-action/advanced-issue-labeler@v3
33+
with:
34+
issue-form: ${{ steps.issue-parser-en.outputs.jsonString }}
35+
token: ${{ secrets.GITHUB_TOKEN }}
36+
continue-on-error: true
2837

29-
- name: Set labels based on component field
38+
- name: Set labels of form-report-pt
3039
uses: redhat-plumbers-in-action/advanced-issue-labeler@v3
3140
with:
32-
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
33-
template: ${{ matrix.template }}
41+
issue-form: ${{ steps.issue-parser-pt.outputs.jsonString }}
3442
token: ${{ secrets.GITHUB_TOKEN }}
43+
continue-on-error: true

0 commit comments

Comments
 (0)