ci: pass version to jq vars

This commit is contained in:
Nicolas Giard 2022-02-13 04:08:59 -05:00 committed by GitHub
parent 1a815598f4
commit dd5d964ce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,8 +37,9 @@ jobs:
run: |
sudo apt-get install jq -y
mv package.json pkg-temp.json
jq -r '. + {dev:false, version:"$REL_VERSION_STRICT"}' pkg-temp.json > package.json
jq --arg vs "$REL_VERSION_STRICT" -r '. + {dev:false, version:$vs}' pkg-temp.json > package.json
rm pkg-temp.json
cat package.json
- name: Login to DockerHub
uses: docker/login-action@v1