Skip to content

Commit 18a14fc

Browse files
Copilotphlax
andcommitted
Replace result-filter with separate jq step for output processing
Co-authored-by: phlax <[email protected]>
1 parent 494ffd4 commit 18a14fc

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,17 @@ jobs:
2929
input-format: yaml
3030
filter: |
3131
if .event == "pull_request" then
32-
"git diff --name-only \(.base_sha)...HEAD" | bash::output
32+
"git diff --name-only \(.base_sha)...HEAD"
3333
else
34-
"git diff --name-only HEAD^1 HEAD" | bash::output
34+
"git diff --name-only HEAD^1 HEAD"
3535
end
36-
result-filter: |
36+
- uses: envoyproxy/toolshed/gh-actions/[email protected]
37+
id: changed-files
38+
with:
39+
input: ${{ steps.changed.outputs.output }}
40+
input-format: raw
41+
options: -Rs
42+
filter: |
3743
rtrimstr("\n")
3844
| split("\n")
3945
| map(select(length > 0))
@@ -48,7 +54,7 @@ jobs:
4854
id: torun
4955
with:
5056
event: ${{ github.event_name }}
51-
paths: ${{ steps.changed.outputs.output || '[]' }}
57+
paths: ${{ steps.changed-files.outputs.value || '[]' }}
5258
config: ${{ steps.config.outputs.value }}
5359
- id: set-outputs
5460
shell: bash

0 commit comments

Comments
 (0)