Skip to content

Commit c06ca6b

Browse files
committed
fix: use shell var $registry_list_output instead of ${{ }} expansion
${{ env.registry_list_output }} causes GitHub Actions to inline the raw table content (with | pipes and newlines) directly into the bash script before the shell parses it, breaking [[ ]] conditionals on Windows. Using the shell env var avoids the inline substitution entirely. https://claude.ai/code/session_01Y8NseCm28GqE8nQ1Yvg5aa
1 parent 3b6d999 commit c06ca6b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/setup-stackql-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ jobs:
3939
- name: Validate Registry List
4040
run: |
4141
echo "Registry list output:"
42-
echo "${{ env.registry_list_output }}"
42+
echo "$registry_list_output"
4343
4444
# Validate header row: expect | provider | and | version | columns
4545
# Use [[:space:]] instead of \s for macOS bash 3.2 compatibility
4646
HEADER_REGEX='\|[[:space:]]*provider[[:space:]]*\|[[:space:]]*version[[:space:]]*\|'
47-
if ! [[ "${{ env.registry_list_output }}" =~ $HEADER_REGEX ]]; then
47+
if ! [[ "$registry_list_output" =~ $HEADER_REGEX ]]; then
4848
echo "Registry list header does not match expected format"
4949
exit 1
5050
fi
5151
5252
# Validate at least one data row: | <name> | v<major>.<minor>.<patch> |
5353
DATA_ROW_REGEX='\|[[:space:]]*[a-z][a-z0-9_]*[[:space:]]*\|[[:space:]]*v[0-9]+\.[0-9]+\.[0-9]+[[:space:]]*\|'
54-
if ! [[ "${{ env.registry_list_output }}" =~ $DATA_ROW_REGEX ]]; then
54+
if ! [[ "$registry_list_output" =~ $DATA_ROW_REGEX ]]; then
5555
echo "Registry list does not contain a valid data row"
5656
exit 1
5757
fi

0 commit comments

Comments
 (0)