mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-01 01:41:39 +00:00
Agent-Logs-Url: https://github.com/mikefarah/yq/sessions/e1b35d79-92a3-47d5-b4ac-a2efe2fd58ce Co-authored-by: mikefarah <1151925+mikefarah@users.noreply.github.com>
28 lines
673 B
YAML
28 lines
673 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
- 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 |