Skip to content
name: Changed files

Check failure on line 1 in .github/workflows/get-changed-files.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/get-changed-files.yml

Invalid workflow file

Invalid `steps` value - steps should be list of `uses` or `run` items
on:
push:
branches:
- Optimize-GH-CI-Workflow
jobs:
setup-matrix:
runs-on: ubuntu-latest
name: Setup test matrix scenarios
steps:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v42
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
for file in ${ALL_CHANGED_FILES}; do
echo "$file was changed"
done