Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
iimpulse committed May 6, 2024
1 parent 9e0aba9 commit 2062b53
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ontology-check-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
outputs:
sha: ${{ steps.sha.outputs.value }}
deploy: ${{ steps.compare.outputs.value }}
steps:
steps:g
- name: Authenticate to Google Cloud
uses: 'google-github-actions/auth@v1'
with:
Expand All @@ -37,22 +37,19 @@ jobs:
uses: sergeysova/jq-action@v2
id: target
with:
cmd: "jq -r '.[] | select(.prefix==\"${{ inputs.ontology }}\")' ontologies.json"
multiline: true
cmd: "jq -r '.[] | select(.prefix==\"${{ inputs.ontology }}\")' ontologies.json > target.json"

- 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
cmd: "jq -r '.[] | select(.prefix==\"${{ inputs.ontology}}\").base_file' target.json"

- 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 All @@ -70,7 +67,7 @@ jobs:
uses: sergeysova/jq-action@v2
id: international
with:
cmd: "jq -r '.international'' ${{ steps.target.outputs.value }}"
cmd: "jq -r '.international'' target.json"

- name: Check values
run:
Expand Down

0 comments on commit 2062b53

Please sign in to comment.