Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7a24b20 authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

fix: Update create-json-files.sh

Replace remaining stable & dev value in variable name to fix issue
parent 0b6c7fd3
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -92,14 +92,14 @@ echo "File size for - $OFFICIAL_APK - $apk_size_official"

# Generate json files ====================

if [[ "$BLOCKED_DEV" != "true" ]]; then
if [[ "$BLOCKED_COMMUNITY" != "true" ]]; then
  generateJsonFile community.json "https://gitlab.e.foundation/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/${CI_COMMIT_TAG}/raw/$APK_PATH/$COMMUNITY_APK?job=generate-apks"
  editJson community.json "size" "$apk_size_dev"
  editJson community.json "size" "$apk_size_community"
fi

if [[ "$BLOCKED_STABLE" != "true" ]]; then
if [[ "$BLOCKED_OFFICIAL" != "true" ]]; then
  generateJsonFile official.json "https://gitlab.e.foundation/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/${CI_COMMIT_TAG}/raw/$APK_PATH/$OFFICIAL_APK?job=generate-apks"
  editJson official.json "size" "$apk_size_stable"
  editJson official.json "size" "$apk_size_official"
fi

# Move json file for artifacts ====================