Skip to content

Commit

Permalink
Updated grep statements to only include unique elements
Browse files Browse the repository at this point in the history
Signed-off-by: Natalia Luzuriaga <[email protected]>
  • Loading branch information
natalialuzuriaga committed Nov 22, 2024
1 parent 14833aa commit bf1b457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/checklistMarkdownToPDF.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
ALL_CHANGED_FILES: ${{ steps.get-dirs.outputs.all_changed_files }}
run: |
# Obtain changed tier directories and format into array
DIRS=$(echo "$ALL_CHANGED_FILES" | grep -oE 'tier[1-4]'| grep -oE 'tier[^ /]*' | sed 's/^/"/; s/$/"/' | paste -sd, -)
DIRS=$(echo "$ALL_CHANGED_FILES" | grep -oE 'tier[1-4]'| grep -oE 'tier[^ /]*' | sort -u | sed 's/^/"/; s/$/"/' | paste -sd, -)
echo "$DIRS"
# Output the array
Expand Down

0 comments on commit bf1b457

Please sign in to comment.