Skip to content

Commit

Permalink
Testing alternative set
Browse files Browse the repository at this point in the history
  • Loading branch information
Obi-Dann committed Sep 11, 2024
1 parent 9b91190 commit 148bd43
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ jobs:
run: exit 1

- name: added-test
if: steps.filter.outputs.local_added != 1
if: ${{ !steps.filter.outputs.local_added }}
run: exit 1

- name: modified-test
if: steps.filter.outputs.local_modified != 0
if: ${{ steps.filter.outputs.local_modified }}
run: exit 1
5 changes: 4 additions & 1 deletion dist/index.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ function exportResults(results: FilterResults, format: ExportFormat): void {
core.setOutput(`${key}_count`, files.length)

for (const status of Object.values(ChangeStatus)) {
core.setOutput(`${key}_${status.toLocaleLowerCase()}`, files.filter(x => x.status === status).length)
const matches = files.some(x => x.status === status)
if (matches) {
core.setOutput(`${key}_${status.toLocaleLowerCase()}`, true)
}
}

if (format !== 'none') {
Expand Down

0 comments on commit 148bd43

Please sign in to comment.