Skip to content

Commit 7bebd09

Browse files
authored
Update action.yml for Build APK workflow
1 parent ded4a1e commit 7bebd09

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/actions/build-apk/action.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,14 @@ runs:
6464
echo ${{ inputs.keyStore }} | base64 --decode > ${{ github.workspace }}/key.jks
6565
fi
6666
67-
- name: Set up kez for private packages
67+
- name: Set up credentials for private packages
6868
shell: bash
6969
run: |
70-
if [ -n "${{ inputs.username }}" ]; then
71-
{
72-
echo gpr.user='${{ inputs.username }}'
73-
echo gpr.key='${{ inputs.token }}'
74-
} >> gradle.properties
75-
fi
70+
[ -f gradle.properties ] && [ "$(tail -c1 gradle.properties)" != "" ] && echo >> gradle.properties
71+
{
72+
echo "gpr.user='${{ inputs.username }}'"
73+
echo "gpr.key='${{ inputs.token }}'"
74+
} >> gradle.properties
7675
7776
- name: Set up JDK
7877
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)