Skip to content

Commit af08b90

Browse files
lpcoxCopilot
andauthored
fix: correct expression quoting in release.yml containers list (#1936)
The needs[] bracket expressions used doubled single quotes (needs[''build-squid'']) inside a YAML literal block (|). In a literal block there is no YAML quote escaping, so the doubled quotes were passed verbatim to the expression evaluator, causing: Unexpected symbol: 'build-squid''' at position 9 Fix by switching the shell strings from single to double quotes, allowing single quotes inside ${{ }} expressions to work correctly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 567dad9 commit af08b90

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -511,11 +511,11 @@ jobs:
511511
run: |
512512
mkdir -p release
513513
printf '%s\n' \
514-
'ghcr.io/${{ github.repository }}/squid@${{ needs[''build-squid''].outputs.digest }}' \
515-
'ghcr.io/${{ github.repository }}/agent@${{ needs[''build-agent''].outputs.digest }}' \
516-
'ghcr.io/${{ github.repository }}/agent-act@${{ needs[''build-agent-act''].outputs.digest }}' \
517-
'ghcr.io/${{ github.repository }}/api-proxy@${{ needs[''build-api-proxy''].outputs.digest }}' \
518-
'ghcr.io/${{ github.repository }}/cli-proxy@${{ needs[''build-cli-proxy''].outputs.digest }}' \
514+
"ghcr.io/${{ github.repository }}/squid@${{ needs['build-squid'].outputs.digest }}" \
515+
"ghcr.io/${{ github.repository }}/agent@${{ needs['build-agent'].outputs.digest }}" \
516+
"ghcr.io/${{ github.repository }}/agent-act@${{ needs['build-agent-act'].outputs.digest }}" \
517+
"ghcr.io/${{ github.repository }}/api-proxy@${{ needs['build-api-proxy'].outputs.digest }}" \
518+
"ghcr.io/${{ github.repository }}/cli-proxy@${{ needs['build-cli-proxy'].outputs.digest }}" \
519519
> release/containers.txt
520520
echo "Generated containers.txt:"
521521
cat release/containers.txt

0 commit comments

Comments
 (0)