Refine version extraction syntax in deploy workflow

Replaced the not recommended "implicit concatenation"
formatting in deploy.yml with a literal block scalar (|).

This adopts a more robust YAML structure and helps
prevent future formatting mistakes.
This commit is contained in:
vlakoff 2026-05-01 00:25:12 +02:00
parent 09cb2da8c2
commit a618adfc2e
No known key found for this signature in database
GPG key ID: D01DA5A5B698E332

View file

@ -58,9 +58,9 @@ jobs:
- name: Get the Oxipng version
id: oxipngMeta
run:
echo "version=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "oxipng").version')"
>> "$GITHUB_OUTPUT"
run: |
VERSION=$(cargo metadata --format-version 1 --no-deps | jq -r '.packages[] | select(.name == "oxipng").version')
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Retrieve ${{ matrix.target }} binary
uses: dawidd6/action-download-artifact@v20