Skip to content

Use a maintained action for "changed files" #203

Use a maintained action for "changed files"

Use a maintained action for "changed files" #203

Workflow file for this run

name: 'woke'
on:
- pull_request
jobs:
woke:
name: 'woke'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v40
with:
write_output_files: true
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
ls .github/outputs/
- 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
woke-args: ${{ steps.changed_files.outputs.all_changed_files }}