Skip to content

Commit

Permalink
changed method to retrieve PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan M Smolenski committed Jan 23, 2024
1 parent c100765 commit 419b7f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/update_shortnames.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ jobs:
echo "Searching for shortname for collection $COLLECTION_ID"
SHORT_NAME=""
if [[ $prname == *"/uat/"* ]]; then
echo "Retrieving shortname from uat metadata"
SHORT_NAME=$(cat cmr_metadata_uat.json | jq -r '.items[] | select(.meta."concept-id" == "${COLLECTION_ID}")' |jq -r '.umm.ShortName')
fi
if [[ $prname == *"/ops/"* ]]; then
echo "Retrieving shortname from ops metadata"
SHORT_NAME=$(cat cmr_metadata.json | jq -r '.items[] | select(.meta."concept-id" == "${COLLECTION_ID}")' |jq -r '.umm.ShortName')
fi
echo "SHORT_NAME=$SHORT_NAME"
Expand Down

0 comments on commit 419b7f0

Please sign in to comment.