Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 293 Bytes
@ECHO OFF
:: Initialize variables
SET state="success"
:: Do your stuff
IF ERRORLEVEL 1 SET state="failure"
IF ERRORLEVEL 1 GOTO End
:: Done
ENDLOCAL
:: Print Output as JSON to be used on next task in Workflow
:End
ECHO {"state":%state%, "data":["%~1", "%~2", "%~3"]}