Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 482 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 482 Bytes

setup-yq-action

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)