File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2- # This script downloads the latests release data from cadence-workflow repositories
32
3+ # This script downloads the latests release data from cadence-workflow repositories
44 gh api \
55 -H " Accept: application/vnd.github+json" \
66 -H " X-GitHub-Api-Version: 2022-11-28" \
1717 -H " Accept: application/vnd.github+json" \
1818 -H " X-GitHub-Api-Version: 2022-11-28" \
1919 /repos/cadence-workflow/cadence-java-client/releases > static/data/releases/cadence-java-client.json
20+
21+ # Validate json files, if any of the commands fail, the script will exit with a non-zero status
22+ cat static/data/releases/cadence.json | jq ' .[] | has("tag_name") and has("body")' -e > /dev/null
23+ cat static/data/releases/cadence-go-client.json | jq ' .[] | has("tag_name") and has("body")' -e > /dev/null
24+ cat static/data/releases/cadence-java-client.json | jq ' .[] | has("tag_name") and has("body")' -e > /dev/null
You can’t perform that action at this time.
0 commit comments