Skip to content

Commit 97cfa58

Browse files
Fix Build Script for Push and Workflow Dispatch events.
1 parent 00f5ef3 commit 97cfa58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +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
79+
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
8080
id: sign_app
8181
with:
8282
releaseDirectory: app/build/outputs/apk/release
@@ -88,14 +88,14 @@ jobs:
8888
BUILD_TOOLS_VERSION: "35.0.0"
8989

9090
- name: Rename APK
91-
if: github.repository == github.event.pull_request.head.repo.full_name
91+
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
9292
run: |
9393
ls -al app/build/outputs/apk/release
9494
echo "Signed APK: ${{steps.sign_app.outputs.signedReleaseFile}}"
9595
cp ${{steps.sign_app.outputs.signedReleaseFile}} KernelFlasher_${{ env.NEW_VERSION_CODE }}.apk
9696
9797
- name: Rename APK
98-
if: github.repository != github.event.pull_request.head.repo.full_name
98+
if: github.repository != github.event.pull_request.head.repo.full_name && github.event_name == 'pull_request'
9999
run: |
100100
ls -al app/build/outputs/apk/release
101101
cp ./app/build/outputs/apk/release/app-release-unsigned.apk KernelFlasher_${{ env.NEW_VERSION_CODE }}.apk

0 commit comments

Comments
 (0)