Skip to content

Commit

Permalink
Update SDK version check for CI (#10354)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Hamley authored and karimnaaji committed Feb 8, 2021
1 parent e4493a5 commit c032b8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,11 @@ jobs:
- run:
name: Check build file for correct SDK version
command: |
if grep -q "sdkVersion:\"$CIRCLE_TAG\"" mapbox-gl.js; then
echo SDK version in mapbox-gl.js matches $CIRCLE_TAG
if grep -q "sdkVersion:\"${CIRCLE_TAG:1}\"" ./dist/mapbox-gl.js; then
echo SDK version in mapbox-gl.js matches ${CIRCLE_TAG:1}
else
echo SDK version in mapbox-gl.js does not match $CIRCLE_TAG
circleci-agent step halt
echo SDK version in mapbox-gl.js does not match ${CIRCLE_TAG:1}
exit 1
fi
- run:
name: Deploy release
Expand Down

0 comments on commit c032b8d

Please sign in to comment.