Skip to content

Commit

Permalink
add additional ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Henderson committed Feb 2, 2024
1 parent 2e6b884 commit 24e4370
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@ jobs:
name: A test job to read a value from json as a variable
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Read a json file
uses: ./
id: read
with:
input-file: 'package.json'
input-property: 'author.name' # Exp: 'fiddlermikey'
- name: Read a json file
uses: ./
id: read-nofail
with:
input-file: 'package.json'
input-property: 'foo' # does not exist
required-value: 'false' # Ignore if not present
- name: Display property value for input-property in input-file
id: write
run: echo "The value for ${{ steps.read.outputs.output-property }} is ${{ steps.read.outputs.output-value }}"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"precommit": "npm run build && git add dist/"
},
"author": {
"name": "fiddlermikey"
"name": "fiddlermikey",
"email": "fake@fakestreet.org"
},
"devDependencies": {
"eslint": "^8.21.0"
Expand Down

0 comments on commit 24e4370

Please sign in to comment.