Skip to content

This lets you do jq operations in GitHub Actions.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.GitHubActions
Notifications You must be signed in to change notification settings

rosshamish/jq-action

 
 

Repository files navigation

Run jq

Run jq on your data and get result as output

Inputs

cmd

Required This is the actual command that will be passed along

Outputs

value

This is the actual result of the command executing

Example usage

uses: sergeysova/jq-action@v2
with:
  cmd: jq -n env

Using output

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    
      - name: Extract version from package.json
        uses: sergeysova/jq-action@v2
        id: version
        with:
          cmd: 'jq .version package.json -r'
      
      - name: Show my version
        run: 'echo "version ${{ steps.version.outputs.value }}"'

About

This lets you do jq operations in GitHub Actions.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.GitHubActions

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 91.7%
  • Dockerfile 8.3%