File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 76
76
77
77
78
78
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'
80
80
id : sign_app
81
81
with :
82
82
releaseDirectory : app/build/outputs/apk/release
@@ -88,14 +88,14 @@ jobs:
88
88
BUILD_TOOLS_VERSION : " 35.0.0"
89
89
90
90
- 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'
92
92
run : |
93
93
ls -al app/build/outputs/apk/release
94
94
echo "Signed APK: ${{steps.sign_app.outputs.signedReleaseFile}}"
95
95
cp ${{steps.sign_app.outputs.signedReleaseFile}} KernelFlasher_${{ env.NEW_VERSION_CODE }}.apk
96
96
97
97
- 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'
99
99
run : |
100
100
ls -al app/build/outputs/apk/release
101
101
cp ./app/build/outputs/apk/release/app-release-unsigned.apk KernelFlasher_${{ env.NEW_VERSION_CODE }}.apk
You can’t perform that action at this time.
0 commit comments