y
y
yq
Search…
GitHub Action
You can use yq in your GitHub action, for instance:
1
- uses: actions/[email protected]
2
- name: Get SDK Version from config
3
id: lookupSdkVersion
4
uses: mikefarah/[email protected]
5
with:
6
cmd: yq eval '.renutil.version' 'config.yml'
7
- name: Restore Cache
8
id: restore-cache
9
uses: actions/[email protected]
10
with:
11
path: ../renpy
12
key: ${{ runner.os }}-sdk-${{ steps.lookupSdkVersion.outputs.result }}
13
restore-keys: |
14
${{ runner.os }}-sdk
15
# ... more
Copied!
The yq action sets a result variable in its output, making it available to subsequent steps. In this case it's available as steps.lookupSdkVersion.outputs.result.
Details of how the GitHub action itself is configured can be found here
If you enable step debug logging, you can see additional information about the exact command sent as well as the response returned within the GitHub Action logs.
Thanks @devorbitus!
Last modified 29d ago
Copy link