Skip to content

Commit

Permalink
filtering with json
Browse files Browse the repository at this point in the history
  • Loading branch information
hgray-instawork committed Mar 27, 2024
1 parent d8b62bf commit fc7279f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/trigger-mobile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Get changed files
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.changed-files.outputs.all_changed_files }}
matrix: ${{ toJson(contains(fromJson(steps.changed-files.outputs.all_changed_files), '/')) }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -42,7 +42,7 @@ jobs:
**.tsx
- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ contains(steps.changed-files.outputs.all_changed_files, '/') }}
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
for file in "$ALL_CHANGED_FILES"; do
echo "$file was changed"
Expand Down

0 comments on commit fc7279f

Please sign in to comment.