Skip to content

☕Simple GitHub Action to read a specified property from a JSON file.

License

Notifications You must be signed in to change notification settings

kekedaine/github-action-json-property-by-lodash

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

github-action-json-property

Get a specified property of a json file.

Usage

Use the action inside your workflow yaml file like this: https://lodash.com/docs/4.17.15#get

...
- name: get version
    id: version
    uses: kekedaine/[email protected]
    with:
        path: 'package.json'
        prop_path: 'keywords[0]' # version | scripts.build
        prop_path2: 'version' # version | scripts.build
- run: echo ${{steps.version.outputs.prop}}
...

About

☕Simple GitHub Action to read a specified property from a JSON file.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%