Skip to content
box

GitHub Action

read JSON property

v1.2 Latest version

read JSON property

box

read JSON property

Allows you to specify a path or json string that will extract a single property from

Installation

Copy and paste the following snippet into your .yml file.

              

- name: read JSON property

uses: ashley-taylor/[email protected]

Learn more about this action in ashley-taylor/read-json-property-action

Choose a version

read-json-property-action

example

- name: Read Properties
  id: read_property
  uses:  ashley-taylor/[email protected]
  with:
    path: options.json
    property: artifact
- name: echo artifact
  run: echo ${{ steps.read_property.outputs.value }}