Skip to content

Commit 780ae29

Browse files
committed
Improved github action test
1 parent 9ca2045 commit 780ae29

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/test-yq.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: Get test
15+
id: get_value
1516
uses: mikefarah/yq@master
1617
with:
17-
cmd: yq eval '.a' examples/sample.yaml
18+
cmd: yq '.b.e[0].name' examples/sample.yaml
19+
- name: Who stole the cookie
20+
run: echo "### It was [${{ steps.get_value.outputs.result }}]" >> $GITHUB_STEP_SUMMARY
1821
- name: Write inplace test
1922
id: lookupSdkVersion
2023
uses: mikefarah/yq@master
2124
with:
22-
cmd: yq eval -i '.b.c = 5' examples/sample.yaml
25+
cmd: yq -i '.b.c = 5' examples/sample.yaml

0 commit comments

Comments
 (0)