{"id":17720377,"url":"https://github.com/sergeysova/jq-action","last_synced_at":"2025-03-14T04:30:59.886Z","repository":{"id":38086202,"uuid":"307668127","full_name":"sergeysova/jq-action","owner":"sergeysova","description":"This lets you do jq operations in GitHub Actions.","archived":false,"fork":true,"pushed_at":"2023-02-15T08:18:09.000Z","size":24,"stargazers_count":54,"open_issues_count":4,"forks_count":18,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-11T11:50:29.165Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"r26D/jq-action","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sergeysova.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-27T10:48:17.000Z","updated_at":"2024-08-28T12:36:20.000Z","dependencies_parsed_at":"2023-02-09T19:30:29.641Z","dependency_job_id":null,"html_url":"https://github.com/sergeysova/jq-action","commit_stats":{"total_commits":19,"total_committers":6,"mean_commits":"3.1666666666666665","dds":0.4736842105263158,"last_synced_commit":"a3f0d4ff59cc1dddf023fc0b325dd75b10deec58"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Fjq-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Fjq-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Fjq-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sergeysova%2Fjq-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sergeysova","download_url":"https://codeload.github.com/sergeysova/jq-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243485964,"owners_count":20298427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-25T15:26:46.083Z","updated_at":"2025-03-14T04:30:54.869Z","avatar_url":"https://github.com/sergeysova.png","language":"Shell","funding_links":[],"categories":["Shell","\u003ca name=\"Shell\"\u003e\u003c/a\u003eShell"],"sub_categories":[],"readme":"# Run jq\n\nRun jq on your data and get result as output\n\n\n## Inputs\n### `cmd`\n**Required** This is the actual command that will be passed along\n\n### `multiline`\nOptional. Default `false`.\n\n| Value | Behavior |\n| - | - |\n| true | Multiple lines of output will be captured. Useful for capturing lists. |\n| false | Only the first line of the output will be captured. The rest will be written to stdout. |\n\n## Outputs\n\n### `value`\nThis is the actual result of the command executing\n\n## Example usage\n\n```yaml\nuses: sergeysova/jq-action@v2\nwith:\n  cmd: jq -n env\n```\n\n## Using output\n\n```yaml\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n    \n      - name: Extract version from package.json\n        uses: sergeysova/jq-action@v2\n        id: version\n        with:\n          cmd: 'jq .version package.json -r'\n      \n      - name: Show my version\n        run: 'echo \"version ${{ steps.version.outputs.value }}\"'\n```\n\n## Using multiline output\n\n```yaml\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n    \n      - name: Extract all keywords from package.json\n        uses: sergeysova/jq-action@v2\n        id: keywords\n        with:\n          cmd: 'jq .keywords[] package.json -r'\n          multiline: true\n      \n      - name: Show keywords\n        run: |\n          keywords=\"${{ steps.keywords.outputs.value }}\"\n          for keyword in $keywords; do\n            echo \"$keyword\"\n          done\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeysova%2Fjq-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsergeysova%2Fjq-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsergeysova%2Fjq-action/lists"}