https://github.com/devorbitus/yq-action-output
A GitHub Action to lookup information from files using yq
https://github.com/devorbitus/yq-action-output
Last synced: 9 months ago
JSON representation
A GitHub Action to lookup information from files using yq
- Host: GitHub
- URL: https://github.com/devorbitus/yq-action-output
- Owner: devorbitus
- License: mit
- Created: 2021-06-05T20:17:20.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-08T11:45:07.000Z (about 5 years ago)
- Last Synced: 2025-09-16T21:30:55.573Z (9 months ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yq-action-output
A GitHub Action to lookup information from YAML files using [yq](https://github.com/mikefarah/yq)
## Example Usage
```yml
- uses: actions/checkout@v2
- name: Get SDK Version from config
id: lookupSdkVersion
uses: devorbitus/yq-action-output@v1.1
with:
cmd: yq eval '.renutil.version' 'config.yml'
- name: Restore Cache
id: restore-cache
uses: actions/cache@v2
with:
path: ../renpy
key: ${{ runner.os }}-sdk-${{ steps.lookupSdkVersion.outputs.result }}
restore-keys: |
${{ runner.os }}-sdk
# ... more
```