Skip to content

Commit 6b5e125

Browse files
committed
Fix check-odo GH actions property array item addressing issue
Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
1 parent 9553664 commit 6b5e125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/check-odo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
old_url=`jq -r .odo.platform.${platform}.url src/tools.json`
3232
new_url=`echo ${old_url} | sed "s|${{ env.REPO_ODO_VERSION }}|${{ env.LATEST_TOOL_RELEASE }}|"`
3333
checksum=`curl -s ${new_url}.sha256`
34-
jq --indent 4 ".odo.platform.${platform}.url = \"${new_url}\"" src/tools.json | jq --indent 4 ".odo.platform.${platform}.sha256sum = \"${checksum}\"" > src/tools.json.new
34+
jq --indent 4 ".odo.platform.[\"${platform}\"].url = \"${new_url}\"" src/tools.json | jq --indent 4 ".odo.platform.[\"${platform}\"].sha256sum = \"${checksum}\"" > src/tools.json.new
3535
mv src/tools.json.new src/tools.json
3636
done
3737
- name: Create pull request

0 commit comments

Comments
 (0)