This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,24 @@ Input and output variables used by read-yaml | |
## Example usage | ||
|
||
``` yaml | ||
name: Read YAML Data | ||
uses: KJ002/[email protected] | ||
id: yaml-data | ||
with: | ||
file: './action.yaml' | ||
key-path: '["runs", "using"]' # Access the runs key then the using key and retuns the value. | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
test-yaml-reader: | ||
runs-on: ubuntu-latest | ||
name: Test read-yaml | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Run read-yaml action | ||
id: yaml-data | ||
uses: KJ002/read-yaml@main # You may wish to replace main with a version tag such as '1.5' etc. | ||
with: | ||
file: './action.yml' # File to read from | ||
key-path: '["runs", "using"]' # Access the runs key then the using key and retuns the value. | ||
|
||
- name: Display read-yaml output | ||
run: echo "${{ steps.yaml-data.outputs.data }}" | ||
``` | ||
## Contributing and Local Development | ||
|