GitHub Action to setup yq
command for yaml and json parsing
Example of use :
name: Release
on: [ "push" ]
jobs:
parse_yaml:
name: Parse Yaml
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install yq
id: setup-yq
uses: shiipou/[email protected]
- name: get version
run: |
VERSION=$(yq '.dependency.my_component.git.ref' pubspec.yaml)