Skip to content

Commit 18be624

Browse files
committed
Update slicing-error-check.yml
1 parent c5bd700 commit 18be624

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/slicing-error-check.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ permissions:
1010
jobs:
1111
processSlicingError:
1212
runs-on: ubuntu-latest
13+
outputs:
14+
needs_info: ${{ steps.check_issue_details.outputs.needs_info }}
1315
steps:
1416
- name: Check for project file and set output
1517
id: check_issue_details
@@ -22,7 +24,7 @@ jobs:
2224
2325
console.log(`Processing issue #${issueNumber}: "${issue.title}"`);
2426
25-
const hasSlicingErrorLabel = issue.labels.some(label => label.name === 'Slicing Error :collision:');
27+
const hasSlicingErrorLabel = issue.labels.some(label => label.name.toLowerCase().includes('slicing error'));
2628
const titleContainsSliceFailed = issue.title.toLowerCase().includes('slice failed');
2729
const bodyText = issue.body || "";
2830
const bodyContainsSliceFailed = bodyText.toLowerCase().includes('slice failed');
@@ -43,10 +45,10 @@ jobs:
4345
} else {
4446
console.log(`Issue #${issueNumber} does not match slicing error criteria. No action needed.`);
4547
}
46-
core.setOutput('needs_info', setNeedsInfoOutput.toString());
48+
console.log(`echo "needs_info=${setNeedsInfoOutput.toString()}" >> $GITHUB_OUTPUT`);
4749
4850
- name: Add comment if project file is missing
49-
if: steps.check_issue_details.outputs.needs_info == 'true'
51+
if: ${{ steps.check_issue_details.outputs.needs_info == 'true' }}
5052
uses: peter-evans/create-or-update-comment@v4
5153
with:
5254
issue-number: ${{ github.event.issue.number }}
@@ -59,7 +61,7 @@ jobs:
5961
If you have already attached a `.zip` file, please ensure it is correctly linked in the issue body.
6062
6163
- name: Add Status Needs Info Label
62-
if: steps.check_issue_details.outputs.needs_info == 'true'
64+
if: ${{ steps.check_issue_details.outputs.needs_info == 'true' }}
6365
uses: actions-ecosystem/action-add-labels@v1
6466
with:
6567
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)