Skip to content

Commit

Permalink
update getting short name with a retry (#2802)
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 authored Feb 13, 2024
2 parents 5f471fd + a7b1c6e commit 6963bd6
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,10 @@ jobs:
fi
done
#curl "https://cmr.uat.earthdata.nasa.gov/search/collections.umm_json?concept_id=${{ matrix.concept_id }}&token=${{ secrets.LAUNCHPAD_TOKEN_UAT }}" >cmr_metadata.json
#SHORT_NAME=$(jq '.items[0].umm.ShortName' cmr_metadata.json)
#SHORT_NAME=$(echo "$SHORT_NAME" | sed 's/"//g')
if [ "$RETRY_COUNT" -eq "$MAX_RETRIES" ]; then
echo "All retries failed. SHORT_NAME is still null or 'null'."
exit 1
fi
echo "SHORT_NAME=$SHORT_NAME">>$GITHUB_ENV
Expand Down Expand Up @@ -155,9 +156,10 @@ jobs:
fi
done
#curl "https://cmr.earthdata.nasa.gov/search/collections.umm_json?concept_id=${{ matrix.concept_id }}&token=${{ secrets.LAUNCHPAD_TOKEN_OPS }}" >cmr_metadata.json
#SHORT_NAME=$(jq '.items[0].umm.ShortName' cmr_metadata.json)
#SHORT_NAME=$(echo "$SHORT_NAME" | sed 's/"//g')
if [ "$RETRY_COUNT" -eq "$MAX_RETRIES" ]; then
echo "All retries failed. SHORT_NAME is still null or 'null'."
exit 1
fi
echo "SHORT_NAME=$SHORT_NAME">>$GITHUB_ENV
Expand All @@ -172,7 +174,7 @@ jobs:
run: |
mkdir -p $GITHUB_WORKSPACE/tests/cmr/ops
echo "${{ matrix.concept_id }}" > $GITHUB_WORKSPACE/tests/cmr/ops/${{ matrix.concept_id }}
- name: Create Pull Request
- name: Create Pull Request for ${{ env.SHORT_NAME }}
id: cpr
uses: peter-evans/create-pull-request@v5
with:
Expand Down

0 comments on commit 6963bd6

Please sign in to comment.