Skip to content

Commit 00f5ef3

Browse files
Generate Unsigned APK on External PR
1 parent 56c890b commit 00f5ef3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
7777
- uses: r0adkll/[email protected]
7878
name: Sign app APK
79+
if: github.repository == github.event.pull_request.head.repo.full_name
7980
id: sign_app
8081
with:
8182
releaseDirectory: app/build/outputs/apk/release
@@ -87,11 +88,18 @@ jobs:
8788
BUILD_TOOLS_VERSION: "35.0.0"
8889

8990
- name: Rename APK
91+
if: github.repository == github.event.pull_request.head.repo.full_name
9092
run: |
9193
ls -al app/build/outputs/apk/release
9294
echo "Signed APK: ${{steps.sign_app.outputs.signedReleaseFile}}"
9395
cp ${{steps.sign_app.outputs.signedReleaseFile}} KernelFlasher_${{ env.NEW_VERSION_CODE }}.apk
9496
97+
- name: Rename APK
98+
if: github.repository != github.event.pull_request.head.repo.full_name
99+
run: |
100+
ls -al app/build/outputs/apk/release
101+
cp ./app/build/outputs/apk/release/app-release-unsigned.apk KernelFlasher_${{ env.NEW_VERSION_CODE }}.apk
102+
95103
- name: Upload APK
96104
uses: actions/[email protected]
97105
with:

0 commit comments

Comments
 (0)