mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-10 05:58:01 -05:00
update workflow to use env
This commit is contained in:
10
.github/workflows/android-custom-build.yml
vendored
10
.github/workflows/android-custom-build.yml
vendored
@@ -22,17 +22,11 @@ jobs:
|
||||
- name: Install npm dependencies
|
||||
run: |
|
||||
npm install
|
||||
- name: Patch selected backend service URL
|
||||
run: |
|
||||
ESCAPED_BACKEND_SERVICE_URL=$(printf '%s\n' "$BACKEND_SERVICE_URL" | sed -e 's/[\/&]/\\&/g')
|
||||
ESCAPED_BACKEND_SERVICE_DEFAULT_URL=$(printf '%s\n' "${{ env.backendServiceDefaultUrl }}" | sed -e 's/[\/&]/\\&/g')
|
||||
echo "Selected backend service URL: $BACKEND_SERVICE_URL (escaped: $ESCAPED_BACKEND_SERVICE_URL)"
|
||||
sed -i "s/$ESCAPED_BACKEND_SERVICE_DEFAULT_URL/$ESCAPED_BACKEND_SERVICE_URL/g" shared/request.ts
|
||||
env:
|
||||
BACKEND_SERVICE_URL: ${{ github.event.inputs.backendServiceUrl }}
|
||||
- name: Build App Newlogic Release
|
||||
run: |
|
||||
cd android && ./gradlew :app:assembleNewlogicRelease
|
||||
env:
|
||||
BACKEND_SERVICE_URL: ${{ github.event.inputs.backendServiceUrl }}
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user