From 780ae29c2be35fe2512a8657cc2f3db871f2c8ba Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Mon, 17 Oct 2022 15:27:24 +1100 Subject: [PATCH] Improved github action test --- .github/workflows/test-yq.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-yq.yml b/.github/workflows/test-yq.yml index 7c019700..b292cc3a 100644 --- a/.github/workflows/test-yq.yml +++ b/.github/workflows/test-yq.yml @@ -12,11 +12,14 @@ jobs: steps: - uses: actions/checkout@v3 - name: Get test + id: get_value uses: mikefarah/yq@master 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 id: lookupSdkVersion uses: mikefarah/yq@master with: - cmd: yq eval -i '.b.c = 5' examples/sample.yaml \ No newline at end of file + cmd: yq -i '.b.c = 5' examples/sample.yaml \ No newline at end of file