File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -79,11 +79,12 @@ jobs:
79
79
echo "KEYSTORE_ALIAS=${{ secrets.SIGNING_KEY_ALIAS }}" >> ${{ github.workspace }}/android/signing.properties
80
80
echo "KEYSTORE_ALIAS_PASSWORD=${{ secrets.SIGNING_KEY_PASSWORD }}" >> ${{ github.workspace }}/android/signing.properties
81
81
82
- - name : Inject secrets into gradle.properties
82
+ - name : Replace secrets in gradle.properties
83
83
run : |
84
- echo "base_url=${{ secrets.BASE_URL }}" >> $GITHUB_WORKSPACE/android/gradle.properties
85
- echo "mobile_app_key=${{ secrets.MOBILE_APP_KEY }}" >> $GITHUB_WORKSPACE/android/gradle.properties
86
- echo "mobile_app_secret=${{ secrets.MOBILE_APP_SECRET }}" >> $GITHUB_WORKSPACE/android/gradle.properties
84
+ sed -i 's|^base_url=.*|base_url=${{ secrets.BASE_URL }}|' android/gradle.properties
85
+ sed -i 's|^mobile_app_key=.*|mobile_app_key=${{ secrets.MOBILE_APP_KEY }}|' android/gradle.properties
86
+ sed -i 's|^mobile_app_secret=.*|mobile_app_secret=${{ secrets.MOBILE_APP_SECRET }}|' android/gradle.properties
87
+
87
88
88
89
- name : Show gradle.properties content
89
90
run : cat android/gradle.properties
You can’t perform that action at this time.
0 commit comments