Skip to content

Commit

Permalink
multiline jq
Browse files Browse the repository at this point in the history
  • Loading branch information
iimpulse committed May 6, 2024
1 parent 0407e92 commit 9e0aba9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ontology-check-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,21 @@ jobs:
id: target
with:
cmd: "jq -r '.[] | select(.prefix==\"${{ inputs.ontology }}\")' ontologies.json"
multiline: true

- name: Get latest tag_name
uses: sergeysova/jq-action@v2
id: purl
with:
cmd: "jq -r '.[] | select(.prefix==\"${{ inputs.ontology}}\").base_file' ${{ steps.target.outputs.value }}"
multiline: true

- name: Get latest SHA
uses: sergeysova/jq-action@v2
id: sha
with:
cmd: "curl \"${{ steps.purl.outputs.value }}\" | shasum | cut -c -7"
multiline: true

- name: Get existing SHA for service
id: existing
Expand Down

0 comments on commit 9e0aba9

Please sign in to comment.