Skip to content

Commit

Permalink
Merge pull request #5 from markmssd/patch-1
Browse files Browse the repository at this point in the history
Update to Node16
  • Loading branch information
garygrossgarten authored Nov 7, 2022
2 parents 2192e24 + 4b20490 commit a5a9c66
Show file tree
Hide file tree
Showing 11 changed files with 2,858 additions and 152 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ jobs:
prop_path: 'scripts.format'

- run: echo ${{steps.get_json_property.outputs.prop}}
- run: echo ${{steps.get_json_property.outputs.propStr}}
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.16.0
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,18 @@ Get a nested property value with dot separated prop_path
...

```

Get a property value as string

```yaml
...
- name: get nested property
id: format_script
uses: notiz-dev/github-action-json-property@release
with:
path: 'package.json'
prop_path: 'scripts.format'
- run: echo ${{steps.format_script.outputs.propStr}}
...

```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs:
prop_path:
description: 'dot separated property key (e.g.: scripts.build)'
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
branding:
color: "yellow"
Expand Down
Loading

0 comments on commit a5a9c66

Please sign in to comment.