Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db48602

Browse files
committed
add quotes and declare variable separately
1 parent 5b163db commit db48602

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
run: |
1818
echo ${{github.repository}}
1919
echo ${{github.head_ref}}
20-
export WEEK=$(echo ${{github.head_ref}} | sed -E 's/.*w(eek)?[-_]?([0-9]).*/week\2/gi')
21-
echo Week: ${WEEK}
22-
npm run test-${WEEK}
20+
declare WEEK
21+
WEEK=$(echo "${{github.head_ref}}" | sed -E 's/.*w(eek)?[-_]?([0-9]).*/week\2/gi')
22+
echo Week: "${WEEK}"
23+
npm run test-"${WEEK}"

0 commit comments

Comments
 (0)