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:
parent
09cb2da8c2
commit
a618adfc2e
1 changed files with 3 additions and 3 deletions
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue