add-required-option #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Set var from json | |
on: [push] | |
jobs: | |
assign-from-json: | |
runs-on: ubuntu-latest | |
name: A test job to read a value from json as a variable | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Read a json file | |
uses: ./ | |
id: read | |
with: | |
input-file: 'package.json' | |
input-property: 'author.name' # Exp: 'fiddlermikey' | |
- 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 }}" | |