yq/.github/workflows/test-yq.yml

22 lines
455 B
YAML
Raw Normal View History

2021-07-15 23:44:50 +00:00
name: Test Yq Action
on: [push]
permissions:
contents: read
2021-07-15 23:44:50 +00:00
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2021-07-15 23:44:50 +00:00
- name: Get test
uses: mikefarah/yq@master
with:
2021-11-03 11:08:14 +00:00
cmd: yq eval '.a' examples/sample.yaml
2021-07-15 23:44:50 +00:00
- name: Write inplace test
id: lookupSdkVersion
uses: mikefarah/yq@master
with:
2021-11-03 11:08:14 +00:00
cmd: yq eval -i '.b.c = 5' examples/sample.yaml