mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-14 07:08:06 +00:00
test yq action can now be run manually
This commit is contained in:
parent
5ef9101913
commit
6c94869329
9
.github/workflows/test-yq.yml
vendored
9
.github/workflows/test-yq.yml
vendored
@ -1,5 +1,8 @@
|
|||||||
name: Test Yq Action
|
name: Test Yq Action
|
||||||
on: [push]
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
@ -13,13 +16,13 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Get test
|
- name: Get test
|
||||||
id: get_value
|
id: get_value
|
||||||
uses: mikefarah/yq@action-use-published-docker
|
uses: mikefarah/yq@master
|
||||||
with:
|
with:
|
||||||
cmd: yq '.test' examples/multiline-text.yaml
|
cmd: yq '.test' examples/multiline-text.yaml
|
||||||
- name: Multiline test
|
- name: Multiline test
|
||||||
run: echo "### It was [${{ steps.get_value.outputs.result }}]" >> $GITHUB_STEP_SUMMARY
|
run: echo "### It was [${{ steps.get_value.outputs.result }}]" >> $GITHUB_STEP_SUMMARY
|
||||||
- name: Write inplace test
|
- name: Write inplace test
|
||||||
id: lookupSdkVersion
|
id: lookupSdkVersion
|
||||||
uses: mikefarah/yq@action-use-published-docker
|
uses: mikefarah/yq@master
|
||||||
with:
|
with:
|
||||||
cmd: yq -i '.b.c = 5' examples/sample.yaml
|
cmd: yq -i '.b.c = 5' examples/sample.yaml
|
Loading…
Reference in New Issue
Block a user