Skip to content

Commit 277773c

Browse files
committed
Use a maintained action for "changed files"
Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
1 parent fced45f commit 277773c

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/woke.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,31 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: 'Checkout'
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v4
11+
12+
- name: Get changed files
13+
id: changed-files
14+
uses: tj-actions/changed-files@v40
15+
with:
16+
write_output_files: true
17+
files: |
18+
**
1119
12-
- uses: jitterbit/get-changed-files@v1
13-
id: files
20+
- name: Debug Changed files
21+
run: |
22+
echo "any changed: ${{ steps.changed-files.outputs.any_changed }}"
23+
echo "${{ steps.changed-files.outputs.all_changed_files }}"
24+
echo "-----------------"
25+
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
26+
echo "$file was changed"
27+
done
28+
ls .github/outputs/
29+
cat .github/outputs/all_changed_files.txt
1430
1531
- name: 'woke'
32+
if: steps.changed-files.outputs.any_changed == 'true'
1633
uses: get-woke/woke-action@v0
1734
with:
1835
# Cause the check to fail on any broke rules
1936
fail-on-error: true
20-
# See https://github.com/marketplace/actions/get-all-changed-files
21-
# for more options
22-
woke-args: ${{ steps.files.outputs.added_modified }}
37+
woke-args: ${{ steps.changed_files.outputs.all_changed_files }}

0 commit comments

Comments
 (0)