From 6b504268a3b47c6aaeac5fe26fdfff1f75e37e33 Mon Sep 17 00:00:00 2001 From: Julian Lechner Date: Wed, 17 Dec 2025 12:51:21 +0100 Subject: [PATCH] Improve README formatting for clarity Updated formatting for note and YAML code block in README. --- README.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a02f210..a3cc92d 100644 --- a/README.md +++ b/README.md @@ -13,20 +13,22 @@ Some uses might be to I could only publish this update by changing the task ID, which has the unfortunate side-effect of messing up the installation for those who had it previously installed. I've sent a query into the Marketplace team to see why this is happening. -NOTE -- with great power comes great responsibility, think through the implications of using this for what you are doing, just because you "Can" do something, doesn't always mean it's the "Right" choice. +**NOTE**: with great power comes great responsibility, think through the implications of using this for what you are doing, just because you "Can" do something, doesn't always mean it's the "Right" choice. [![Build Status](https://oneluckidev.visualstudio.com/OneLuckiDev/_apis/build/status/vsts-json-to-variable)](https://oneluckidev.visualstudio.com/OneLuckiDev/_build/latest?definitionId=16) ## Azure Dev Ops YAML -steps: -- - -` - task: OneLuckiDev.json2variable.vsts-json-to-variable.oneLuckiDevJson2Variable@1` -` displayName: 'JSON to Variable'` -` inputs:` -` jsonFile: '-- your json file here --'` -` shouldPrefixVariables: true ` -` variablePrefix: prefixNameHere` + +```yaml +steps: + - task: OneLuckiDev.json2variable.vsts-json-to-variable.oneLuckiDevJson2Variable@1 + displayName: 'JSON to Variable' + inputs: + jsonFile: '-- your json file here --' + shouldPrefixVariables: true + variablePrefix: prefixNameHere +``` ## Functionality This task reads a JSON file, parses through it an set variable values based on the structure of the JSON that was read in. Variable will be created or updated if the exist already.