Skip to content

Commit

Permalink
Use a maintained action for "changed files"
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester committed Nov 15, 2023
1 parent fced45f commit f32a416
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/woke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,25 @@ jobs:
steps:
- name: 'Checkout'
uses: actions/checkout@v2

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v40
with:
files: |
**
- uses: jitterbit/get-changed-files@v1
id: files
- name: Debug Changed files
run: |
echo "any changed: ${{ steps.changed-files.outputs.any_changed }}"
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
- name: 'woke'
if: steps.changed-files.outputs.any_changed == 'true'
uses: get-woke/woke-action@v0
with:
# Cause the check to fail on any broke rules
fail-on-error: true
# See https://github.com/marketplace/actions/get-all-changed-files
# for more options
woke-args: ${{ steps.files.outputs.added_modified }}
woke-args: ${{ steps.changed_files.outputs.all_changed_files }}

0 comments on commit f32a416

Please sign in to comment.