Skip to content

Commit ee60e81

Browse files
committed
Refactor build-dev-container.yaml to remove trailing slashes and leading 'templates/' from folder names
- Remove trailing slashes from folder names - Remove leading 'templates/' from folder names
1 parent f904115 commit ee60e81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build-dev-container.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
id: set-matrix
1919
run: |
2020
FOLDERS=$(ls -d templates/*/)
21-
FOLDERS=${FOLDERS//\//} # remove trailing slashes
21+
FOLDERS=${FOLDERS%/} # remove trailing slashes
2222
FOLDERS=${FOLDERS//templates\//} # remove leading 'templates/'
2323
FOLDERS_JSON=$(echo "$FOLDERS" | jq -R -s -c 'split("\n")[:-1]')
2424
echo "FOLDERS_JSON: $FOLDERS_JSON"
2525
echo "::set-output name=matrix::${FOLDERS_JSON}"
26-
26+
2727
build:
2828
runs-on: ubuntu-latest
2929
strategy:

0 commit comments

Comments
 (0)