Skip to content

Commit

Permalink
feat: add a workflow to generate release APK using input keys and zones
Browse files Browse the repository at this point in the history
  • Loading branch information
MortezaNedaei committed May 5, 2024
1 parent aa0a6b3 commit 91a4b72
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/change-app.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

PROJECT_DIR=""
if [ -n "${GITHUB_WORKSPACE}" ]; then
PROJECT_DIR="${GITHUB_WORKSPACE}"
PROJECT_DIR=${{ github.workspace }}
if [ -n "${PROJECT_DIR}" ]; then
update_app_keys "$1" "$2" "$3"
else
PROJECT_DIR=$(dirname "$PWD")
update_app_keys "$1" "$2" "$3"
fi

FILE="$PROJECT_DIR/build.gradle.kts"
Expand All @@ -27,6 +28,4 @@ update_app_keys() {
else
echo "Failed to update app keys: One or more keys are undefined."
fi
}

update_app_keys "$1" "$2" "$3"
}

0 comments on commit 91a4b72

Please sign in to comment.