File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,11 @@ jobs:
2525 shell : bash
2626 run : |
2727 # Compose list of changed SQL files under mimic-iv/concepts and export to step output
28- files="$(echo "${{ steps.get_file_changes.outputs.files_modified }} ${{ steps.get_file_changes.outputs.files_added }}" \
29- | tr -s ' ' '\n' \
30- | grep -E '^mimic-iv/concepts/.*[.]sql$' \
31- | tr -s '\n' ' ')"
28+ raw="${{ steps.get_file_changes.outputs.files_modified }} ${{ steps.get_file_changes.outputs.files_added }}"
29+ # Check for mimic-iv SQL files which may have changed
30+ filtered="$(printf '%s' "$raw" | tr -s ' ' '\n' | grep -E '^mimic-iv/concepts/.*[.]sql$' || true)"
31+ # Turn this into a space separated list for the next step
32+ files="$(printf '%s' "$filtered" | tr -s '\n' ' ')"
3233 echo "lintees=${files}" >> "$GITHUB_OUTPUT"
3334
3435 - name : Lint SQL files
You can’t perform that action at this time.
0 commit comments