Skip to content

Use a maintained action for "changed files" #205

Use a maintained action for "changed files"

Use a maintained action for "changed files" #205

Workflow file for this run

name: 'woke'
on:
- pull_request
jobs:
woke:
name: 'woke'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v4
- 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 }}"
echo "${{ steps.changed-files.outputs.all_changed_files }}"
echo "-----------------"
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
echo "$file was changed"
done
ls .github/outputs/
cat .github/outputs/all_changed_files.txt
- 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 }}