mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
28 lines
626 B
YAML
28 lines
626 B
YAML
name: Test Yq Action
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Get test
|
|
id: get_value
|
|
uses: mikefarah/yq@master
|
|
with:
|
|
cmd: yq '.test' examples/multiline-text.yaml
|
|
- name: Multiline test
|
|
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 -i '.b.c = 5' examples/sample.yaml |