mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 05:38:04 +00:00
Improved github action test
This commit is contained in:
parent
9ca20451b7
commit
780ae29c2b
7
.github/workflows/test-yq.yml
vendored
7
.github/workflows/test-yq.yml
vendored
@ -12,11 +12,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Get test
|
- name: Get test
|
||||||
|
id: get_value
|
||||||
uses: mikefarah/yq@master
|
uses: mikefarah/yq@master
|
||||||
with:
|
with:
|
||||||
cmd: yq eval '.a' examples/sample.yaml
|
cmd: yq '.b.e[0].name' examples/sample.yaml
|
||||||
|
- name: Who stole the cookie
|
||||||
|
run: echo "### It was [${{ steps.get_value.outputs.result }}]" >> $GITHUB_STEP_SUMMARY
|
||||||
- name: Write inplace test
|
- name: Write inplace test
|
||||||
id: lookupSdkVersion
|
id: lookupSdkVersion
|
||||||
uses: mikefarah/yq@master
|
uses: mikefarah/yq@master
|
||||||
with:
|
with:
|
||||||
cmd: yq eval -i '.b.c = 5' examples/sample.yaml
|
cmd: yq -i '.b.c = 5' examples/sample.yaml
|
Loading…
Reference in New Issue
Block a user