Skip to content

only folders

only folders #9

Workflow file for this run

name: Test getUserTVLByBlock method
on:
pull_request:
paths:
- '**/' # Listen for changes in any directory
jobs:
test-adapters:
runs-on: ubuntu-latest
env:
FOLDER_NAME: ""
steps:
- uses: actions/[email protected]
# Extract and process changed folders
- name: Get changed folders
id: changed_folders
run: |
changed_folders=$(git diff --name-only HEAD^ HEAD | awk -F/ '{print $2}' | sort -u)
echo "::set-output name=changed_folders::$changed_folders"
- name: Print changed folders
run: echo "Changed folders: ${{ steps.changed_folders.outputs.changed_folders }}"

Check failure on line 24 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
# Loop through changed folders
- name: Run commands in each folder
run: |
for folder in ${{ steps.changed_folders.outputs.changed_folders }}; do
cd adapters/$folder
npm install
npm run compile
cd ../..
npm install
npm run start $folder
done