Skip to content

Commit 2682435

Browse files
author
KocsisV
committed
Occurrences -> Findings, update to 2023.3 release
1 parent be9367b commit 2682435

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

action.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ runs:
4747
{
4848
echo "IncQuery Validator for Enterprise Architect will be installed."
4949
echo "need_to_install=true" >> $env:GITHUB_OUTPUT
50-
echo "download_url=https://build.incquerylabs.com/nexus/repository/lieberlieber-collaboration-raw/validator-for-ea/release-2023.2.1/IncQuery%20Validator%20for%20Enterprise%20Architect%202023.2.1%20Setup.exe" >> $env:GITHUB_OUTPUT
50+
echo "download_url=https://build.incquerylabs.com/nexus/repository/lieberlieber-collaboration-raw/validator-for-ea/release-2023.3.0/IncQuery%20Validator%20for%20Enterprise%20Architect%202023.3.0%20Setup.exe" >> $env:GITHUB_OUTPUT
5151
echo "installer_path=${{ runner.temp }}/IncQuery Validator for Enterprise Architect Setup.exe" >> $env:GITHUB_OUTPUT
5252
}
5353
@@ -145,7 +145,7 @@ runs:
145145
{
146146
$msg += "The following type of issues were detected:`r`n"
147147
148-
$msg += "| | Level | Occurrences |`r`n"
148+
$msg += "| | Level | Findings |`r`n"
149149
$msg += "| --- | ------------- | ------------- |`r`n"
150150
if ( $fatals -ne 0 ) { $msg += "| :no_entry: | Fatal | $fatals |`r`n" }
151151
if ( $errors -ne 0 ) { $msg += "| :no_entry_sign: | Error | $errors |`r`n" }
@@ -155,16 +155,16 @@ runs:
155155
156156
$msg += "`r`n"
157157
158-
$numRulesWithOccurrences = ($summary_csv.Where{$_.occurrences -gt 0}).Count
159-
$numRulesWithoutOccurrences = $numRules - $numRulesWithOccurrences
158+
$numRulesWithFindings = ($summary_csv.Where{$_.Findings -gt 0}).Count
159+
$numRulesWithoutFindings = $numRules - $numRulesWithFindings
160160
161-
if ( $numRules -eq $numRulesWithOccurrences )
161+
if ( $numRules -eq $numRulesWithFindings )
162162
{
163-
$msg += "All ($numRules) rules have occurrences in the model.`r`n"
163+
$msg += "All ($numRules) rules have findings in the model.`r`n"
164164
}
165165
else
166166
{
167-
$msg += "Out of the $numRules rules, $numRulesWithOccurrences have occurrences.`r`n"
167+
$msg += "Out of the $numRules rules, $numRulesWithFindings have findings.`r`n"
168168
}
169169
}
170170
else
@@ -229,27 +229,27 @@ runs:
229229
$summary_message += ">`r`n"
230230
}
231231
232-
$summary_message += ">Only the rules with occurrences are shown.`r`n`r`n"
232+
$summary_message += ">Only the rules with findings are shown.`r`n`r`n"
233233
234234
if ( "${{ inputs.fail_on }}" -eq "none" )
235235
{
236-
$summary_message += "| Severity | Occurrences | Rule name | Description |`r`n"
236+
$summary_message += "| Severity | Findings | Rule name | Description |`r`n"
237237
$summary_message += "| -------- | ----------- | --------- | ----------- |`r`n"
238238
}
239239
else
240240
{
241-
$summary_message += "| | Severity | Occurrences | Rule name | Description |`r`n"
241+
$summary_message += "| | Severity | Findings | Rule name | Description |`r`n"
242242
$summary_message += "| --- | -------- | ----------- | --------- | ----------- |`r`n"
243243
}
244244
245245
foreach ($rule in $summary_csv)
246246
{
247247
$severity = $rule.Severity
248-
$occurrences = $rule.Occurrences
248+
$numFindings = $rule.Findings
249249
$description = $rule.Description
250250
$ruleName = $rule.'Rule name'
251251
252-
if ( $occurrences -gt 0 )
252+
if ( $numFindings -gt 0 )
253253
{
254254
switch ($severity) {
255255
"FATAL" { $severityNumeric = 5 }
@@ -278,15 +278,15 @@ runs:
278278
$summary_message += " $marker |"
279279
}
280280
281-
$summary_message += " $severity | $occurrences | $ruleName | $description |`r`n"
281+
$summary_message += " $severity | $numFindings | $ruleName | $description |`r`n"
282282
}
283283
}
284284
285285
$summary_message += "`r`n"
286286
287287
# write out the summary message
288288
echo $msg | Out-File -FilePath $env:GITHUB_STEP_SUMMARY
289-
# only write per rule breakdown if there is any occurrences
289+
# only write per rule breakdown if there is any findings
290290
if ( $sumMinDebugs -gt 0 )
291291
{
292292
echo $summary_message | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append

0 commit comments

Comments
 (0)