This action converts between plist
and json
using plist package.
source
- string containing sourceformat
- source format, can beplist
orjson
pretty
- settrue
if pretty-printing output is required
target
- output field of action presented as string to chain forward
steps:
- name: Convert plist to json
id: plist
uses: rosingrind/plist-action@v1
with:
source: <plist><string>Hello World!</string></plist> # input string
format: plist # source format
pretty: true # pretty-print output
- name: Output plist-action result
env:
PLIST_ACTION_OUTPUT: ${{steps.plist.outputs.target}}
run: echo $PLIST_ACTION_OUTPUT