mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-06-26 09:25:24 -06:00
Update slicing-error-check.yml
This commit is contained in:
parent
c5bd700961
commit
18be62482e
1 changed files with 6 additions and 4 deletions
10
.github/workflows/slicing-error-check.yml
vendored
10
.github/workflows/slicing-error-check.yml
vendored
|
@ -10,6 +10,8 @@ permissions:
|
|||
jobs:
|
||||
processSlicingError:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
needs_info: ${{ steps.check_issue_details.outputs.needs_info }}
|
||||
steps:
|
||||
- name: Check for project file and set output
|
||||
id: check_issue_details
|
||||
|
@ -22,7 +24,7 @@ jobs:
|
|||
|
||||
console.log(`Processing issue #${issueNumber}: "${issue.title}"`);
|
||||
|
||||
const hasSlicingErrorLabel = issue.labels.some(label => label.name === 'Slicing Error :collision:');
|
||||
const hasSlicingErrorLabel = issue.labels.some(label => label.name.toLowerCase().includes('slicing error'));
|
||||
const titleContainsSliceFailed = issue.title.toLowerCase().includes('slice failed');
|
||||
const bodyText = issue.body || "";
|
||||
const bodyContainsSliceFailed = bodyText.toLowerCase().includes('slice failed');
|
||||
|
@ -43,10 +45,10 @@ jobs:
|
|||
} else {
|
||||
console.log(`Issue #${issueNumber} does not match slicing error criteria. No action needed.`);
|
||||
}
|
||||
core.setOutput('needs_info', setNeedsInfoOutput.toString());
|
||||
console.log(`echo "needs_info=${setNeedsInfoOutput.toString()}" >> $GITHUB_OUTPUT`);
|
||||
|
||||
- name: Add comment if project file is missing
|
||||
if: steps.check_issue_details.outputs.needs_info == 'true'
|
||||
if: ${{ steps.check_issue_details.outputs.needs_info == 'true' }}
|
||||
uses: peter-evans/create-or-update-comment@v4
|
||||
with:
|
||||
issue-number: ${{ github.event.issue.number }}
|
||||
|
@ -59,7 +61,7 @@ jobs:
|
|||
If you have already attached a `.zip` file, please ensure it is correctly linked in the issue body.
|
||||
|
||||
- name: Add Status Needs Info Label
|
||||
if: steps.check_issue_details.outputs.needs_info == 'true'
|
||||
if: ${{ steps.check_issue_details.outputs.needs_info == 'true' }}
|
||||
uses: actions-ecosystem/action-add-labels@v1
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue